From the docs:
NOTE: the SSH-1 protocol does not support running multiple commands per connection, unless those commands are chained together so that the remote shell can evaluate them. Because of this, a new socket connection is created each time you call cmd, and disposed of afterwards.
I suggest you run a single shell script with all your commands instead.
In reply to Re: why single channel is not supporting multiple cmds in NET::SSH::PERL
by Joost
in thread why single channel is not supporting multiple cmds in NET::SSH::PERL
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |