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). 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

  • Re: Time Out an Exec Call
    ... specify a max wait time when looking for a response. ... |I am using exec() to run a number of StarOS tests on multiple IP's ... | minutes in the execution of the script. ... I cannot use ping to test the ...
    (alt.php)
  • Re: exec php
    ... a few php-scripts whose execution is dependent on an external program. ... As Jerry said, the try and catch will not work, as php will loose the ... control when the exec will be called. ... The scheduled script ...
    (comp.lang.php)
  • Re: Problem in calling c programs and compiling them in tcl/tk
    ... using exec gcc filename.c and later exec ./a.out filename.c. ... the execution of a command that might generate a Tcl error. ... Be sure to read the documentation for exec -http://wiki.tcl.tk/exec-for information about catch, ...
    (comp.lang.tcl)
  • Re: Good debugger?
    ... Cameron Laird wrote: ... exec. ... In truth, it should ... Why is it called "a stay of execution" ...
    (comp.lang.tcl)
  • Re: Question if COND code / IF THEN struct
    ... //PRCSTEP1 EXEC PGM=IDCAMS ... If I have an JCL with an instream PROC: ... PRCSTEP1 will have an RC=0 ... first execution of the PROC and follow that with another SET overriding ...
    (bit.listserv.ibm-main)