Trying to redirect a subprocess\' output to a file.
server.py:
while 1: print \"Count \" + str(count) sys.stdout.flush() count = count +
Output redirection with ">" is a feature of shells - by default, subprocess.Popen doesn't instantiate one. This should work:
subprocess.Popen
server = subprocess.Popen(args, shell=True)