I run this Ruby script 24/7 (records data from this live stream). It runs inside a screen though, so it's easy to check in on it every once in a while.
But how do I crontab the screen with the script inside it? It has to be with a "don't run it if it's already running" check. So far I have this (untested) - what y'all think? */10 * * * * lockf -t 0 /home/anonymous/.myscript.lock /usr/local/bin/screen -dm /home/anonymous/.rvm/rubies/ruby-1.9.3-p0/bin/ruby /home/anonymous/myscript.rb --Dwayne _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"