how can I send several command by useing pexpect ssh

2006-11-05 Thread haishan chang
I have studied pexpect example "sshls.py" and "ssh_session.py", trying to carry several linux command by ssh. for example. 1. ssh connect one remotehost, 2. cd  /tmp directory 3. mkdir myname 4. touch  output.log   But I found these examples only can carry one command.who knows how to carry sereval

How to execute a linux command by python?

2006-10-18 Thread haishan chang
How to execute a linux command by python? for example: execute "ls"  or "useradd oracle" Who can help me? thank you! -- http://mail.python.org/mailman/listinfo/python-list