On Sun, 16 Dec 2001, Geoff Hutchison wrote:

> Of course if someone knows how you could do some sort of 
> timeout/alarm in the update script, that would solve the problem. I 
> could even stick the mirror scripts as examples on the website.


Something like:

<command> &
sleep <seconds>
if <command> still on ps list, then kill it.


Found this on a list:

----------------------------
  command &
  sleep 20
  if [ $(ps -p $! | wc -l ) -eq 2 ]; then echo "ERROR"; else echo "OK"; fi
---------------------------




--jesse
--------------------------------------------------------------------
J. op den Brouw                           Johanna Westerdijkplein 75
Haagse Hogeschool                                  2521 EN  DEN HAAG
Faculty of Engeneering                                   Netherlands
Electrical Engeneering                                +31 70 4458936
-------------------- [EMAIL PROTECTED] --------------------

Linux - because reboots are for hardware changes


_______________________________________________
htdig-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to