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
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
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
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