in reply to Re: Net::SSH::Perl and Stratus (VOS)
in thread Net::SSH::Perl and Stratus (VOS)

The blank line is because the command returns one new line, and I am explicitly printing a newline in perl print command. I was pretty sure I had tried just about every combination of params just in case there was something goofy, but I double checked and tried it both with interactive 1 and not suppressing the shell, and interactive off and supressing the shell to no avail. I did find some insight on how to sort of run a trace on the Stratus command, and it appears to actually be running running multiple commands behind the scenes. I am pretty sure that is the issue. Thanks for your feedback! B

Replies are listed 'Best First'.
Re^3: Net::SSH::Perl and Stratus (VOS)
by tachyon-II (Chaplain) on Jun 13, 2008 at 10:28 UTC

    it appears to actually be running running multiple commands behind the scenes. I am pretty sure that is the issue.

    An extremely ugly hack springs to mind

    (undef,$stderr,$exit) = $ssh->cmd("command --opts > tmp.txt"); ($stdout) = $ssh->cmd("cat tmp.txt"); or ($stdout) = $ssh->cmd("command --opts > tmp.txt && cat tmp.txt");

    Running this command with nohup might be worth trying as well. You may find Net::SSH2 works better.