From owner-freebsd-questions@FreeBSD.ORG Wed Jul 26 07:18:13 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60FB416A4DD for ; Wed, 26 Jul 2006 07:18:13 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id D15CA43D53 for ; Wed, 26 Jul 2006 07:18:12 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k6Q7ICpN067736; Wed, 26 Jul 2006 02:18:12 -0500 (CDT) (envelope-from dan) Date: Wed, 26 Jul 2006 02:18:12 -0500 From: Dan Nelson To: Nicky Message-ID: <20060726071811.GC70646@dan.emsphone.com> References: <1153897405.691.10.camel@nlp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1153897405.691.10.camel@nlp> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-questions@freebsd.org Subject: Re: Current Cron Log X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jul 2006 07:18:13 -0000 In the last episode (Jul 26), Nicky said: > I have a script that is started through cron. This script contains > several steps, each step writes information to stdout, in case of > errors to stderr. The total script runs for about 6 hours and then > the the combined output of all steps is mailed to root. > > However, is there a way to 'examine/monitor' the scripts progress. > Perhaps cron keeps a temporary/current logfile of my scripts output, > which i can look at? There should be a sendmail process catching the output of the command cron launched. If there's more than a couple KB of output, it will create a queue file in /var/spool/mqueue that you can look at while the cron job runs. If the job only prints a couple lines of output, though, sendmail won't generate the queue file until it has to deliver the final email. -- Dan Nelson dnelson@allantgroup.com