A problem that I didn't discover until just now is that a change I made recently is preventing output from being appended to an old file properly. Therefore, if you run this program manually you must use a different output file each time
This program was tested using ./testscript.pl ./appserver 10 1000 0