Re: How do I get the exit code of an external program?

From: Date: Mon, 23 Jun 2003 02:57:38 +0000
Subject: Re: How do I get the exit code of an external program?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152466@lists.php.net to get a copy of this message
On 23-Jun-2003 Daevid Vincent wrote: > I wish to use Ping to test if some IP addresses are up... Now I could run > the command and parse to find various string components like this: > <snip> > > So it seems to me there needs to be another PHP function like exec(), > shell(), etc. that is the equivillent of the php exit() function but for > external programs. One that simply returns the integer exit code of an > executed shell program... > > exec(), system(), & popen()/pclose() will return exit code. The manual is your friend. Regards, -- Don Read dread@texas.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. (53kr33t w0rdz: sql table query)

« previous php.general (#152466) next »