I can't run multiple commands on one connect (another requirement)
Then use a single sh to run multiple.
$ssh->cmd(q[sh -c 'first; second;'])
Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
In reply to Re: Using Expect.pm and username/password to ssh to a host
by Juerd
in thread Using Expect.pm and username/password to ssh to a host
by Amsterdamned
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |