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 '}'

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

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

    tried that its not working

      and thanks Myrddin Wyllt

        it didnt work ....any other way i could try.

      A reply falls below the community's threshold of quality. You may see it by logging in.