Time Out an Exec Call
- From: Tyrone Slothrop <ts@xxxxxxxxxxxxx>
- Date: Tue, 30 May 2006 09:00:33 -0700
I am using exec() to run a number of StarOS tests on multiple IP's
(they test various aspects of router and server functions). The
problem I have is that an invalid IP may cause a delay of a few
minutes in the execution of the script. I cannot use ping to test the
validity of an IP since ping may be blocked.
Is there a way to stop the execution of a loop if, after a few
seconds, there is no response from the server? I would guess that the
exec() would have to be called from inside of some sort of timer,
though the solution escapes me.
TIA!
.
- Follow-Ups:
- Re: Time Out an Exec Call
- From: robert
- Re: Time Out an Exec Call
- Prev by Date: Cannot get simple PDO based SQL query going on mysql
- Next by Date: New tech Forum
- Previous by thread: Cannot get simple PDO based SQL query going on mysql
- Next by thread: Re: Time Out an Exec Call
- Index(es):
Relevant Pages
|