how can I send several command by useing pexpect ssh
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?
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