Re: Getting Exit Code From A Shell Command
| From: | David Robley | Date: | Tue, 15 Aug 2000 01:05:58 +0000 |
| Subject: | Re: Getting Exit Code From A Shell Command | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11713@lists.php.net to get a copy of this message | ||
On 14 Aug, o.cook@etoncollege.org.uk wrote:
> Is there any way to get the exit code that a shell command returns, rather
> than just the output of the command?
>
> All the best,
>
> Ollie
Check the manual for exec, system and passthru and you will find that
they all accept an argument for return status of the executed command.
Cheers
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA