Grant Edwards wrote:
> On 2007-09-06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>   
>> I'm a new user. What library should I use so that I can launch
>> program in linux using python? Thank you in advance.
>>     
>
> subprocess
>   
Hmm, there are some others. Here is a list:

os.system
os.popen (and os.popen2, os.popen3)
os.spawn
popen2 (the module)
subprocess (this is often preferred over other modules)

If you need to communicate with a subprocess using the system console, 
then possibly the third party pexpect module worth look at it.

If you need to use this on Windows then you can use the win32 extensions 
and "CreateProcess"...

I suggest that you read their documentation. Some of them are easy to 
use but feature less. Others are good for some purpose.

   Laszlo


p.s.: In Python "there should be only one obvious and correct way to do 
it". What??? :-)

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to