Current Cron Log

Dan Nelson dnelson at allantgroup.com
Wed Jul 26 07:18:13 UTC 2006


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 at allantgroup.com


More information about the freebsd-questions mailing list