|
Hi -
I am trying to write a CGI script using the Net-SSH-Perl module, and I am encountering an issue with $ssh->cmd(). It appears that the login passed, but nothing after the cmd() call would print. And depending on the order of where I place the cmd() call, the program would even halt. I tested the script on the command line and it works fine. Note, that I don't have root access to my web hosting server. Could this have something to do with it? Could this be a known problem? I searched the internet and found similar problems reported in some forums but it doesn't like anyone has the answers. Please help me!
my $ssh = Net::SSH::Perl->new($destination, use_pty => 0, debug => 1, identity_files => [@ident_
+files], interactive => 0);
$ssh->login($user, $password);
my($stdout_1, $stderr, $exit) = $ssh->cmd($command); ### Problem here... ###
|