From: J. op d. B. <MSQ...@st...> - 2001-12-17 15:11:54
|
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 -------------------- J.E...@st... -------------------- Linux - because reboots are for hardware changes |