* [EMAIL PROTECTED] wrote (on 10/18/2006 11:32 AM):
> Fredrik Lundh wrote:
>> haishan chang wrote:
>>
>>> How to execute a linux command by python?
>>> for example: execute "ls"  or "useradd oracle"
>>> Who can help me?
>> start here:
>>
>>      http://www.python.org/doc/lib/
>>
>> </F>
> 
> After reading the matl. pointed to by the many links listed here,
> you can try pexpect. Provided for more control and interactivity.
> More at: http://pexpect.sourceforge.net/
> 
> /venkat
> 

BTW, is there a version of pexpect that works with Windows?  This
package requires pty and termios which isn't supported on Windows.

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

Reply via email to