From: "George Herson" <[EMAIL PROTECTED]>
> How do i find out what the return status of an exec() executed command
> means? For example, i have the line
>
> $ciphertext = exec("perl /home/httpd/cgi-bin/passgen.pl
> $plaintext",$arr,$retstat);
>
> which makes $retstat = 126.
>
> thanks,
> geo
>
That's the return code from passgen.pl. Fortunately being a Perl script you
can just open it up and look for an exit(126) line. Otherwise you'll need
some docs for the program you're exec()ing.
--
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]