command string good in subprocess.Popen(string) fails in process.Process(string)

Peter Hansen peter at engcorp.com
Mon May 16 12:48:58 EDT 2005


Earl Eiland wrote:
> from Trent Mick trentm at ActiveState.com:
> "You might be able to use or borrow code from my process.py module.

Few here have ever heard of it, I suspect.  Maybe you should ask Trent 
for help?
> 
>>Earl Eiland wrote:
>>
>>>The command string consists of "filename.exe  instruction1 instruction2
>>>..."  It works in subprocess, but in process, returns the error "can't
>>>find the file instruction1".
>>>
>>>How do I pass command line instructions in process.Process?  I tried a
>>>list ['filename.exe', 'instruction1 instruction2 ...'] with the same
>>>result.

The docs (in the form of the Powerpoint presentation on his site, which 
I'm reading using OpenOffice) suggest maybe you should be using 
['filename.exe', 'instruction1', 'instruction2', ...] instead...

-Peter



More information about the Python-list mailing list