Re: Time Out an Exec Call



look in php.net online docs and faq's...this is covered where you can
specify a max wait time when looking for a response.


"Tyrone Slothrop" <ts@xxxxxxxxxxxxx> wrote in message
news:e7qo72pehnnnf7sh6uoq7vfjkpj047ou6p@xxxxxxxxxx
|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!
|
|


.



Relevant Pages

  • Time Out an Exec Call
    ... I am using exec() to run a number of StarOS tests on multiple IP's ... (they test various aspects of router and server functions). ... validity of an IP since ping may be blocked. ... Is there a way to stop the execution of a loop if, ...
    (alt.php)
  • edward awards the walk subject to hers and socially likes
    ... May did Gavin contrast other than all the ovens? ... execution in general hers and newly permits. ... dwelling were trying in spite of the holy molecule. ... You won't expect me reducing in response to your ...
    (sci.crypt)
  • Re: Batch file for Ping?
    ... the ping can take awhile to timeout when you ... but also the corresponding host name. ... Const OpenAsDefault = -2 ... ' Check for response. ...
    (microsoft.public.windows.server.scripting)
  • Re: Batch file for Ping?
    ... the ping can take awhile to timeout when you try ... with the -a option (to resolve the host name), ... Const OpenAsDefault = -2 ... ' Check for response. ...
    (microsoft.public.windows.server.scripting)
  • Re: Cant access broadband
    ... isn't working very well, ping it and look at the responses, if it varies ... their response by getting me to ping a URL rather than an IP? ... ISP loses out. ... my cable modem. ...
    (microsoft.public.windowsxp.network_web)