From owner-freebsd-questions@FreeBSD.ORG Thu Jan 24 16:53:44 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3C7D9AF6 for ; Thu, 24 Jan 2013 16:53:44 +0000 (UTC) (envelope-from lavalamp@spiritual-machines.org) Received: from mail1.g3.pair.com (mail1.g3.pair.com [66.39.3.114]) by mx1.freebsd.org (Postfix) with ESMTP id 0CA8C6F3 for ; Thu, 24 Jan 2013 16:53:43 +0000 (UTC) Received: from ip-10-108-9-130 (ec2-184-72-125-209.compute-1.amazonaws.com [184.72.125.209]) by mail1.g3.pair.com (Postfix) with ESMTPSA id 7D03E33EEB; Thu, 24 Jan 2013 11:46:59 -0500 (EST) Date: Thu, 24 Jan 2013 11:43:30 -0500 (EST) From: "Brian Seklecki (Mobile)" X-X-Sender: root@ecs00.cozzaenterprises.com To: Dwayne Henderson Subject: Re: Crontabbing a Ruby script inside a screen In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (LRH 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: ruby-talk@ruby-lang.org, questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2013 16:53:44 -0000 screen(1) is just going to fill a massive buffer, then eventually core. You can capture stdout/stderr to a file using script(1) instead. Its basically the same as: % nohup ./command 2>&1 | tee -a ~/command.log & ~BAS On Thu, 24 Jan 2013, Dwayne Henderson wrote: > 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 screen with the Ruby s