in reply to issue with code to save config on brocade switch
($out,$err) = $ssh->capture2("{stdin_data =>yes},cfgsave");
This is not what you have been told by Myrddin Wyllt in an answer to your previous question about the very same problem. Try:
($out,$err) = $ssh->capture2({stdin_data => 'yes'}, "cfgsave");
Note that ({foo => 'bar'}, "baz") is not the same as ("{foo => bar}, baz"):
The first expression is a list containing an anonymous hash and a string. The second is a list containing a string.
update: added missing '}'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: issue with code to save config on brocade swicth
by janasec (Sexton) on Jul 28, 2015 at 07:30 UTC | |
by janasec (Sexton) on Jul 28, 2015 at 07:34 UTC | |
by janasec (Sexton) on Jul 28, 2015 at 12:37 UTC | |
by Corion (Patriarch) on Jul 28, 2015 at 12:45 UTC | |
by janasec (Sexton) on Jul 28, 2015 at 18:04 UTC | |
| |
|