How to crontab screen with script inside and a
"don't run it if it's already running" check?
Jens Jahnke
jan0sch at gmx.net
Sat Jun 2 12:39:09 UTC 2012
Hi,
On Sat, 2 Jun 2012 14:08:49 +0200
Dwayne Henderson <its.code.in.here at gmail.com> wrote:
DH> Any comments on this though?
DH>
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.
Regards,
Jens
--
02. Brachet 2012, 14:30
Homepage : http://www.jan0sch.de
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 : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20120602/9eb7770d/attachment.pgp
More information about the freebsd-questions
mailing list