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                                       [EMAIL PROTECTED]
-- 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)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to