Friday, July 07, 2006

kill a process after a while

run_whatever & pid=$!

sleep 3600

kill $pid 2>/dev/null

(Incidentally, no popular web search engine gives responses for the query $! )

It might be possible to hack something using ulimit, too

No comments :