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

2012-06-02 Thread Dwayne Henderson
Hello Jens! Nice. But what to do if the machine reboots or whatever. Would you crontab your new Irssi alias? --Dwayne On Fri, Jun 1, 2012 at 9:39 PM, Jens Jahnke jan0...@gmx.net wrote: Hi, On Fri, 1 Jun 2012 20:55:00 +0200 Dwayne Henderson its.code.in.h...@gmail.com wrote: DH I run this

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

2012-06-02 Thread Jens Jahnke
Hello Dwayne, On Sat, 2 Jun 2012 10:59:09 +0200 Dwayne Henderson its.code.in.h...@gmail.com wrote: DH Nice. But what to do if the machine reboots or whatever. Would you DH crontab your new Irssi alias? I'm not sure. On my remote box I usually start irssi by hand because it only ceases if the

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

2012-06-02 Thread Dwayne Henderson
Any comments on this though? */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 Thanks for the help! --Dwayne On Sat, Jun 2, 2012 at 12:57 PM, Jens Jahnke jan0...@gmx.net wrote:

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

2012-06-02 Thread Jens Jahnke
Hi, On Sat, 2 Jun 2012 14:08:49 +0200 Dwayne Henderson its.code.in.h...@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

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

2012-06-01 Thread Dwayne Henderson
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

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

2012-06-01 Thread Jens Jahnke
Hi, On Fri, 1 Jun 2012 20:55:00 +0200 Dwayne Henderson its.code.in.h...@gmail.com wrote: DH I run this Ruby script 24/7 (records data from this live stream). DH It runs inside a screen though, so it's easy to check in on it DH every once in a while. DH DH But how do I crontab the screen with