Re: Problem with subprocess module on Windows with open file in append mode

2009-10-06 Thread Gabriel Genellina
En Tue, 06 Oct 2009 11:24:23 -0300, MRAB escribió: Gabriel Genellina wrote: En Sat, 03 Oct 2009 21:53:12 -0300, Andrew Savige escribió: When I run this little test program on Linux: import subprocess subprocess.call(["python","-V"], stderr=open("log.tmp","a")) the file log.tmp is appe

Re: Problem with subprocess module on Windows with open file in append mode

2009-10-06 Thread MRAB
Gabriel Genellina wrote: En Sat, 03 Oct 2009 21:53:12 -0300, Andrew Savige escribió: When I run this little test program on Linux: import subprocess subprocess.call(["python","-V"], stderr=open("log.tmp","a")) the file log.tmp is appended to each time I run it. When I run it on Windows, how

Re: Problem with subprocess module on Windows with open file in append mode

2009-10-05 Thread Gabriel Genellina
En Sat, 03 Oct 2009 21:53:12 -0300, Andrew Savige escribió: When I run this little test program on Linux: import subprocess subprocess.call(["python","-V"], stderr=open("log.tmp","a")) the file log.tmp is appended to each time I run it. When I run it on Windows, however, the file log.tmp ge

Re: problem with subprocess

2009-07-10 Thread Christian Heimes
gabrielmonnerat wrote: >> I am using subprocess because I need store the pid. Any suggestions? > Sorry, I was forgot the parameter shell=True. > i.e > In [20]: subprocess.call('DISPLAY=:99 > /opt/ooo-dev3/program/soffice.bin',shell=True) You should avoid using the shell=True parameter. It may resu

Re: problem with subprocess

2009-07-10 Thread gabrielmonnerat
gabrielmonnerat wrote: Hi all, I need start a openoffice in Xvfb, but when I call with the DISPLAY occurs this error: [r...@localhost oood]# Xvfb :99 -screen 0 1024x768x24 & In [9]: subprocess.call('/opt/ooo-dev3/program/soffice.bin') Out[9]: 0 In [10]: subprocess.call('DISPLAY=:99 /opt/ooo

Re: Problem with subprocess in threaded enviroment

2008-03-13 Thread dripton
On Mar 12, 12:58 pm, Ningyu Shi <[EMAIL PROTECTED]> wrote: > I'm trying to write a multi-task downloader to download files from a > website using multi-threading. I have one thread to analyze the > webpage, get the addresses of the files to be downloaded and put these > in a Queue. Then the main th