How to crontab screen with script inside and a "don't run it if it's already running" check?

Jens Jahnke jan0sch at
Sat Jun 2 12:39:09 UTC 2012


On Sat, 2 Jun 2012 14:08:49 +0200
Dwayne Henderson < at> wrote:

DH> Any comments on this though?
DH> */10 * * * * lockf -t 0 /home/anonymous/.myscript.lock
DH> /usr/local/bin/screen -dm /home/anonymous/.rvm/rubies/
DH> ruby-1.9.3-p0/bin/ruby /home/anonymous/myscript.rb

looks quite okay but as the manpage suggest I would add "-k" to lockf.



02. Brachet 2012, 14:30
Homepage :

If Love Were Oil, I'd Be About A Quart Low
		-- Book title by Lewis Grizzard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 704 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list