> Running the cgi-module trying to execute a perl script, dug through the
> archives found something that would at least return something:
> exec("/full/path/to/file.cgi", $results, $errorCode);
> while (list(,$line) = each($results)){
>   echo $line, "<BR>\n";
> }
> if ($errorCode){
>   echo "OS Error: $errorCode<BR>\n";
> }
> It spits out nothing but but an error code of 2 ... so basically what i
> from it is OS Error: 2.

man errno
will tell you exactly which error that is.
(You have to count down, so it's the second one.)

I'm betting on path/permissions problem.

You are not running this Perl scripts as you -- You're running as "nobody"
or whomever is set by the User directive in httpd.conf

You are also not running in your normal shell with your normal environment
variables.  You are running in "nobody"s shell with their environment

WARNING [EMAIL PROTECTED] address is an endangered species -- Use
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to