Re: Python and Unix Commands

2005-09-20 Thread Adriaan Renting
>>>"Adriaan Renting" <[EMAIL PROTECTED]> 09/19/05 11:20 am >>> | |P.S. you don't need to post your question to this list every 5 minutes. | Hmmm, somehow my reply also got posted more than once... At least that's what it looks like in my mail viewer, I only see one post in Google. Maybe it's

Re: Python and Unix Commands

2005-09-19 Thread Piet van Oostrum
> "timdoyle05" <[EMAIL PROTECTED]> (T) wrote: >T> Hi, >T>I have a question relating to how Unix commands can be issued from >T> Python programs. Im am currently writing a large test script in python >T> and I need this script to call three other separate Python scripts, >T> where each o

Re: Python and Unix Commands

2005-09-19 Thread Alan Gauld
> I have a question relating to how Unix commands can be issued > from > Python programs. There are numerous methods including the commands module that you have already discovered, the os.system() call and the various os.popen/os.execXX calls. Also Python 2.4 has introduced the subprocess modu

Re: Python and Unix Commands

2005-09-19 Thread Adriaan Renting
Depending on what you axactly want there are a lot of ways to do this. There is the subProcess module, there is the pty module, there is os.system, there is the popen module, and my personal favorite is Pexpect (pexpect.sourceforge.org). Read the documentation of these modules is my first suggest

Python and Unix Commands

2005-09-19 Thread timdoyle05
Hi, I have a question relating to how Unix commands can be issued from Python programs. Im am currently writing a large test script in python and I need this script to call three other separate Python scripts, where each one executes in it own thread of control. I would like to use a Unix c