Crontabbing a Ruby script inside a screen

2013-01-24 Thread Dwayne Henderson
Hi, I run this Ruby + Sequel script inside a screen that records data from this live stream 24/7. But it tends to core dump every once in a while, and since I run it in a screen (so it's easy to check in on), I can't really scroll up to catch the error whenever it happens. So how do I crontab the

Re: Crontabbing a Ruby script inside a screen

2013-01-24 Thread Dwayne Henderson
On Thu, Jan 24, 2013 at 1:33 PM, Robert Klemme shortcut...@googlemail.comwrote: I am not 100% sure what you want to achieve. But it seems to me that it would be easier to wrap your Ruby script in something else that restarts the script if it crashes. Like #!/usr/bin/dash # no cores

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

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 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

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