Debug your program by printing $cmd before you send it for execution to the remote machine. See perlop on how double-quotes (and qq{}) work.
If you had use strict; at the top of your program, Perl would have told you what goes wrong. If you had -w on the Perl command line or use warnings; at the top of your program, Perl would have given you hints at what goes wrong.
In reply to Re: Error while executing a command using Net::SSH::Expect
by Corion
in thread Error while executing a command using Net::SSH::Expect
by lamp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |