how can I send several command by useing pexpect ssh
haishan chang
guid.china at gmail.com
Mon Nov 6 02:00:11 EST 2006
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 linux command continuely.
Background: I have hundreds computers, and try to control all computers at
one time.
thank you very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20061106/87531c11/attachment.html>
More information about the Python-list
mailing list