Re: Where do i look up return status codes?

From: Date: Tue, 20 Feb 2001 21:06:59 +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-40812@lists.php.net to get a copy of this message
From: "George Herson" <gherson@snet.net> > 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.

« previous php.general (#40812) next »