Answers for "jumpssh execute multiple commands"

0

jumpssh execute multiple commands

#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")
Posted by: Guest on August-03-2021
0

jumpssh execute multiple commands

#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")
Posted by: Guest on August-03-2021

Code answers related to "jumpssh execute multiple commands"

Python Answers by Framework

Browse Popular Code Answers by Language