Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2001 13:21:43 -0400
From:      James Housley <jim@thehousleys.net>
To:        Trevin Chow <trevin@mail.com>
Cc:        questions@freebsd.org
Subject:   Re: logging of /usr/libexec/atrun
Message-ID:  <3B322D27.362DE3FC@thehousleys.net>
References:  <BCCBC5E8BA377141B125D2C5F91ABA5B02A69E47@red-msg-07.redmond.corp.microsoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Trevin Chow wrote:
> 
> -----Original Message-----
> >>Trevin Chow wrote:
> >>
> >> I tried looking at my cron logs today (/var/log/cron) to see why some
> of
> >> my cron jobs aren't executing.  However, I'm finding my cron logs
> pretty
> >> useless since the root's cronjob of "/usr/libexec/atrun" is running
> every
> >> 5 mins on my system.  Thsu an entry is made into /var/log/cron every
> 5
> >> mins whcih fill up my logs and I'm not able to easily find entries
> for
> >> other jobs.  Is there a way to stop the logging of thisjob?
> 
> >Instead just filter out the atrun lines.
> >grep 
> This doesn't work too well since the cron logs are getting archived in
> cron.0.gz, cron.1.gz, etc after a certain size I'm guessing? So I have
> to unzip each of the cron logs to find what I want... or is there a
> better way?

zgrep -v atrun /var/log/cron* | more

-- 
/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
 X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
jeh@FreeBSD.org      http://www.FreeBSD.org     The Power to Serve
jim@TheHousleys.Net  http://www.TheHousleys.net
---------------------------------------------------------------------
"...there's no idea that's so good you can't 
    ruin it with a few well-placed idiots." 
    -- Charles Spickman

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B322D27.362DE3FC>