Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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")
 
PREVIOUS NEXT
Tagged: #jumpssh #execute #multiple #commands
ADD COMMENT
Topic
Name
8+9 =