<div>I have studied pexpect example "sshls.py" and "ssh_session.py", trying to carry several linux command by ssh. for example.</div>
<div>1. ssh connect one remotehost,</div>
<div>2. cd  /tmp directory</div>
<div>3. mkdir myname</div>
<div>4. touch  output.log</div>
<div> </div>
<div>But I found these examples only can carry one command.who knows how to carry sereval linux command continuely.</div>
<div>Background: I have hundreds computers, and try to control all computers at one time.</div>
<div>thank you very much.</div>