Hi Chris,
If the timing isn't important, is there anything to stop you writing the script with sleep 1 in it ~59 times and then running the script every minute in cron?
That way, even if the script dies, you only have to wait at most a minute before it tries again
Cheers
I want to run a command at something like 1 second intervals (the
timing isn't at all critical), it's a background task with no screen
output.
So I want something like 'watch' but which will run without a
terminal, and I also want to be sure that the command will always get
run. Thus something like a loop in bash with a 'sleep 1' in it isn't
suitable because if the command dies it won't restart.
I.e. it's a cron job with a 1 second repeat rate and non-critical
timing, any ideas anyone?
--
Chris Green
_______________________________________________
main@lists.alug.org.uk
http://www.alug.org.uk/
http://lists.alug.org.uk/mailman/listinfo/main
Unsubscribe? See message headers or the web site above!