Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jul 2006 02:18:12 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Nicky <nicky@valuecare.nl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Current Cron Log
Message-ID:  <20060726071811.GC70646@dan.emsphone.com>
In-Reply-To: <1153897405.691.10.camel@nlp>
References:  <1153897405.691.10.camel@nlp>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060726071811.GC70646>