0

How can I use one SSH object to execute two commands one after the other? can I use the ";" between the commands when sending them? i.e : stdout = ssh.exec_command('command1';'command2')

Elias Shourosh
  • 89
  • 3
  • 14

1 Answers1

2

It's not

ssh.exec_command('command1' ; 'command2')

Should be

ssh.exec_command('command1 ; command2')