Re: subprocess.Popen()/call() and appending file

2010-06-15 Thread hiral
On Jun 14, 7:11 pm, Kushal Kumaran wrote: > On Mon, Jun 14, 2010 at 7:01 PM,hiral wrote: > > Hi, > > > Do we have any facility to append file from Popen()/call(); see below > > example... > > > 1 import subprocess > > 2 f=open('log', 'w') > > 3 ...# writing some log-into into log file > > 4 p = su

Re: subprocess.Popen()/call() and appending file

2010-06-14 Thread Kushal Kumaran
On Mon, Jun 14, 2010 at 7:01 PM, hiral wrote: > Hi, > > Do we have any facility to append file from Popen()/call(); see below > example... > > 1 import subprocess > 2 f=open('log', 'w') > 3 ...# writing some log-into into log file > 4 p = subprocess.Popen(cmd, stdout=f, stderr=f) # (Q) > 5 ...# do

subprocess.Popen()/call() and appending file

2010-06-14 Thread hiral
Hi, Do we have any facility to append file from Popen()/call(); see below example... 1 import subprocess 2 f=open('log', 'w') 3 ...# writing some log-into into log file 4 p = subprocess.Popen(cmd, stdout=f, stderr=f) # (Q) 5 ...# do remaining stuff Q: At line# 4, the output of the 'cmd' will wip

subprocess.Popen()/call() and appending file

2010-06-14 Thread hiral
Hi, Do we have any facility to append file from Popen()/call(); see below example... 1 import subprocess 2 f=open('log', 'w') 3 ...# writing some log-into into log file 4 p = subprocess.Popen(cmd, stdout=f, stderr=f) # (Q) 5 ...# do remaining stuff Q: At line# 4, the output of the 'cmd' will wip