[Ssh-sftp-perl-users] problem with CGI
Brought to you by:
dbrobins
From: Fernando B. <fb...@cr...> - 2013-11-14 11:59:12
|
Hi guys. My script don't work in apache. look this: =================================================================== #!/usr/bin/perl use CGI; use HTTP::Request::Common qw(POST); use Net::SSH::Perl; use DateTime; use warnings; use strict; my $user = 'user'; my $pass = 'pass'; my $cmd = "svn --help"; my $ssh = Net::SSH::Perl->new('10.10.1.1'); $ssh->login($user, $pass); my($stdout, $stderr, $exit) = $ssh->cmd("$cmd"); if ($stdout) { print "stdout -> " . $stdout . "\n"; } else { print "stderr -> " . $stderr . "\n"; } print "exit -> " . $exit . "\n"; =================================================================== At line command this is ok but executing in apache the page never load... Still loading page until time out. What's the problem? help-me... Thanks! |