in reply to Re^9: Net::OpenSSH + CGI problem
in thread Net::OpenSSH + CGI problem
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 |