executing an external app
Cameron Laird
claird at lairds.com
Wed Jan 28 16:29:42 EST 2004
In article <GJVRb.5895738$be.962461 at news.easynews.com>,
Joe Francia <usenet at -OBFUSCATION-joefrancia.com> wrote:
>Joseph Krauze wrote:
>> Hi all,
>>
>> I have a simple question which I cannot solve (relatively new to Python).
>> I want to write a script that executes an application on the go. I looked
>> into the exec*e() calls but the problem there is that they do not return.
>> I also looked into execfile() but here the PATH is not taken into account
>> and I couldn't figure out to pass the file that's executed arguments.
>>
>> So, is there a simple way to execute an external app?
>> i.e. execvpe('cat', 'myFile') - this will not return
>>
>> Thanks,
>> Joseph
>
>Look at os.spawn* or os.popen*
.
.
.
And os.system(). And commands.getoutput().
--
Cameron Laird <claird at phaseit.net>
Business: http://www.Phaseit.net
More information about the Python-list
mailing list