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.
-- http://mail.python.org/mailman/listinfo/python-list