14 Aug
2007
14 Aug
'07
1:58 p.m.
On Tuesday 14 August 2007 13:42:02 Adam Bower wrote:
On Tue, Aug 14, 2007 at 11:07:49AM +0100, Richard Lewis wrote:
I guess I could write another script which keeps an eye on the first script's pid and restarts the script when the pid disappears. But before I do, I was wondering if there's a more automatic or more elegant way of doing it?
Cron job running every half hour to see if it is running and restart it?
Yeah, I guess so. Though, even dirtier, I just thought I could probably go: #!/bin/bash while true do python wobbly-script.py sleep 1 done Thanks for the suggestion. R. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Richard Lewis http://www.richard-lewis.me.uk/ JID: ironchicken@jabber.earth.li -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-