I'm having trouble getting my scripts to run...
i keep getting a SBox error:
"exec of /html/cgi/test.cgi failed (No such file or directory) "
But it DOES exist!
The script is in the correct cgi folder on the server, and the html is in the directory above it.
*the permissions on the cgi file are 'rwxr-xr-x'
Here is how i call the script("form.html":
i keep getting a SBox error:
"exec of /html/cgi/test.cgi failed (No such file or directory) "
But it DOES exist!
The script is in the correct cgi folder on the server, and the html is in the directory above it.
*the permissions on the cgi file are 'rwxr-xr-x'
Here is how i call the script("form.html":
Code:
<form action="/cgi/test.cgi">
<input type="text" length="20" name="title"><br>
<input type="submit" value="submit">
</form>
[code]
[b]Here is the script("test.cgi"):[/b]
[code]
#!/usr/bin/perl
my $in;
if ($ENV{'REQUEST_METHOD'} eq "GET") {
$in = $ENV{'QUERY_STRING'};
} else {
$in = <STDIN>;
}
$in =~ s/\+/ /g;
$in =~ s/%(..)/pack("c",hex($1))/ge;
$in =~ s/=/ /g;
print "Content-type: text/html\n\n";
print "<html><body>\n";
print "You entered = $in";
print "</body></html>\n";
[code]
Please help... Sbox is against me...
Thank you, Dan