Re: Where do i look up return status codes?
| From: | ..s.c.o.t.t.. [gts] | Date: | Tue, 20 Feb 2001 23:03:08 +0000 |
| Subject: | Re: Where do i look up return status codes? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40836@lists.php.net to get a copy of this message | ||
for system("perl test.pl", $retval);
and exec("perl test.pl", $ary, $retval);
the value of $retval is the value that the perl
script "test.pl" returns, (not a perl status code).
as someone else suggested, go and look for
exit(126) statements (or just exit(), if exit
returns the value of a variable, and not the
constant "126") within the perl script and you'll
probably find a little note as to *what* the 126
means...
----- Original Message -----
From: "Chris Carbaugh" <cjtech2000@yahoo.com>
To: "George Herson" <gherson@snet.net>; <php-general@lists.php.net>
Sent: Tuesday, February 20, 2001 5:10 PM
Subject: Re: [PHP] Where do i look up return status codes?
>
> I'm not familiar with perl, but I would said either the script it's self
> is returning the code, or the perl interpreter.
>
> Chris
>
> On Tue, 20 Feb 2001, George Herson wrote:
> > Date: Tue, 20 Feb 2001 12:13:35 -0500
> > To: php-general@lists.php.net
> > From: George Herson <gherson@snet.net>
> > Subject: [PHP] Where do i look up return status codes?
> >
> > 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
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail:
> > php-list-admin@lists.php.net
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>