Sep 13, 2002, 1:20 AM
Post #1 of 3
I have a perl cgi script that when called will access a remote mysql database through an ssh tunnel (don't be alarmed!!). When I access the script with Netscape, the web server does not return the values form the mysql select. It's as if the web server timed out before mysql returns, and If I run it from the shell it works perfectly!!
perl mysql cgi
The problem isn't with mysql, as the example below should list the files in my home directory on the remote machine!! Again, this works from the shell!!
All I get is a message saying 'system call done' (see code) and nothing else.
foreach $_ (`ssh <ip address> ls -l`)
(my $1,my $2,my $3) = /(\S+)\s+(\S+)\s+(.*)/;
print "$1 $2 $3<br>\n";
print "<br><br>system call done\n";
Any ideas please!!?