in reply to Re^9: Net::OpenSSH + CGI problem
in thread Net::OpenSSH + CGI problem

There, in the non-working case, Net::OpenSSH fails because ssh can not bind the multiplexing socket to /home/LGUser/username-10.10.10.13-5518-521068.0SV3ky2zB6JJBHFY.

Anyway, comparing the debug output of the working case with the output on the Apache logs you posted in a previous entry, the mayor difference I see is that STDIN is closed in the second case.

Try running the remote command as follows:

pipe my($rh), my($wh); my @lines = $ssh->capture({stdin_fh => $rh}, "sh int desc");

Replies are listed 'Best First'.
Re^11: Net::OpenSSH + CGI problem
by fwalters (Novice) on Feb 24, 2017 at 15:31 UTC
    AWESOME! Thanks so much the pipe worked like a charm!