Ticket #6933: process.py

File process.py, 231 bytes (added by Andrei Savici, 7 years ago)
Line 
1import subprocess
2
3f=open("test.log","w")
4fe=open("test.err","w")
5proc=subprocess.Popen('python reduction.py ', stdin=subprocess.PIPE,stdout=f,stderr=fe,universal_newlines = True,shell=True)
6proc.communicate()
7f.close()
8fe.close()