Re: how to use subprocess to execute an exe with args and an output

2013-01-30 Thread Terry Reedy
On 1/30/2013 1:11 PM, MRAB wrote: On 2013-01-30 17:15, noydb wrote: I am looking for some guidance on using subprocess to execute an EXE with arguments and an output. The below code works in that it returns a 0 exit code, but no output file is created. I have tried a few different versions of

Re: how to use subprocess to execute an exe with args and an output

2013-01-30 Thread noydb
oh DUH! that was it, just missing the -F. Thank-you!! -- http://mail.python.org/mailman/listinfo/python-list

Re: how to use subprocess to execute an exe with args and an output

2013-01-30 Thread MRAB
On 2013-01-30 17:15, noydb wrote: I am looking for some guidance on using subprocess to execute an EXE with arguments and an output. The below code works in that it returns a 0 exit code, but no output file is created. I have tried a few different versions of this code (used Popen instead, s

Re: how to use subprocess to execute an exe with args and an output

2013-01-30 Thread Chris Rebert
On Wed, Jan 30, 2013 at 9:15 AM, noydb wrote: > I am looking for some guidance on using subprocess to execute an EXE with > arguments and an output. The below code works in that it returns a 0 exit > code, but no output file is created. I have tried a few different versions > of this code (us

Re: how to use subprocess to execute an exe with args and an output

2013-01-30 Thread noydb
To add on, I need to eventually write a script that takes input, feeds it into this exe, and takes the output file to perform more 'tools'/manipulations on it. Is call or Popen called for, why? Or maybe some other module??? -- http://mail.python.org/mailman/listinfo/python-list

how to use subprocess to execute an exe with args and an output

2013-01-30 Thread noydb
I am looking for some guidance on using subprocess to execute an EXE with arguments and an output. The below code works in that it returns a 0 exit code, but no output file is created. I have tried a few different versions of this code (used Popen instead, some stderr/stdout), but no luck. Ca

Re: How to use subprocess

2005-03-23 Thread Thomas Bellman
Nicolas Fleury <[EMAIL PROTECTED]> writes: > Hi, > I want to use the subprocess module (or any standard Python module) to > run a process: > - which stdout and stderr can each be redirected to any file-like object > (no fileno function). > - can be cancelled with a threading.Event. > My p

Re: How to use subprocess

2005-03-22 Thread Michele Simionato
I am not sure how safe it is, but on Linux I have just copied subprocess.py in my 2.3 installation and it worked in all the cases I tried. Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: How to use subprocess

2005-03-22 Thread Fredrik Lundh
Dennis Lee Bieber wrote: > Pardon the question, but which version of Python /has/ a > "subprocess" module? Is it new with 2.4? yes. for earlier versions, you can get a pure-Python Unix implementation here: http://www.lysator.liu.se/~astrand/popen5/ and a windows installer here: http:/

How to use subprocess

2005-03-22 Thread Nicolas Fleury
Hi, I want to use the subprocess module (or any standard Python module) to run a process: - which stdout and stderr can each be redirected to any file-like object (no fileno function). - can be cancelled with a threading.Event. My problem is that the subprocess.Popen constructor doesn't seem to