From owner-freebsd-questions Thu Jun 21 10:21:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from thehousleys.net (frenchknot.ne.mediaone.net [24.147.224.201]) by hub.freebsd.org (Postfix) with ESMTP id D19D237B406 for ; Thu, 21 Jun 2001 10:21:49 -0700 (PDT) (envelope-from jim@thehousleys.net) Received: (from root@localhost) by thehousleys.net (8.11.3/8.11.2) id f5LHLjJ21097; Thu, 21 Jun 2001 13:21:45 -0400 (EDT) (envelope-from jim@thehousleys.net) Received: from thehousleys.net (baby.int.thehousleys.net [192.168.0.24]) (authenticated) by thehousleys.net (8.11.3/8.11.3) with ESMTP id f5LHLis21088; Thu, 21 Jun 2001 13:21:44 -0400 (EDT) (envelope-from jim@thehousleys.net) Message-ID: <3B322D27.362DE3FC@thehousleys.net> Date: Thu, 21 Jun 2001 13:21:43 -0400 From: James Housley X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Trevin Chow Cc: questions@freebsd.org Subject: Re: logging of /usr/libexec/atrun References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS perl-10 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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