📜  jumpssh 执行多个命令 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:19.693000             🧑  作者: Mango

代码示例1
#If you wish each command to have an effect on the next command you should use:

    stdin, stdout, stderr = client.exec_command("command1;command2;command3")
    
#but in some cases, I found that when ";" doesn't work, using "&&" does work.

    stdin, stdout, stderr = client.exec_command("command1 && command2 && command3")