RE: [Tutor] Popen and sending output to a file

2005-01-19 Thread Ertl, John
Subject: Re: [Tutor] Popen and sending output to a file On Wed, 19 Jan 2005, Ertl, John wrote: > I am using the subprocess.Popen from 2.4. I can launch a job from > python and the output from the job goes to the screen but now I would > like to have the output go to a file. I could do

Re: [Tutor] Popen and sending output to a file

2005-01-19 Thread Danny Yoo
On Wed, 19 Jan 2005, Ertl, John wrote: > I am using the subprocess.Popen from 2.4. I can launch a job from > python and the output from the job goes to the screen but now I would > like to have the output go to a file. I could do the crude > > subprocess.Popen("dtg | cat > job.out", shell=True

[Tutor] Popen and sending output to a file

2005-01-19 Thread Ertl, John
I am using the subprocess.Popen from 2.4. I can launch a job from python and the output from the job goes to the screen but now I would like to have the output go to a file. I could do the crude subprocess.Popen("dtg | cat > job.out", shell=True) But I would think there is a better way built i