delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/01/19:48:10

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
Subject: Re: 1.5.18-1: syslogd and cron message issue (XP/2000).
Date: Sat, 01 Apr 2006 18:47:35 -0600
Lines: 49
Message-ID: <e0n6v7$g5e$1@sea.gmane.org>
References: <36957B047F186D4E8AF00C401684A0EBA1B776 AT auntm202 DOT apac DOT corp DOT eds DOT com>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5 (Windows/20051201)
In-Reply-To: <36957B047F186D4E8AF00C401684A0EBA1B776@auntm202.apac.corp.eds.com>
OpenPGP: url=hkp://random.sks.keyserver.penguin.de
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Irwin, Doug wrote:

> I have set up /etc/syslog.conf to exclude logging cron messages but
> still seem to be getting them.
>=20
> In syslogd I have tried the following:
> 	*.*;cron.none   /var/log/messages

That one should be enough.

[snip]
> What is getting logged is soemthing along the lines of this:
> Mar 23 16:52:00 DOUG /USR/SBIN/CRON : PID 4844 : (doug) CMD
-----------------------^^^^^^^^^^^^^^
My guess: the "facility" is not recognized by syslogd, that means syslogd is
looking for "cron" and instead it finds that ugly "/USR/SBIN/CRON".

> (/usr/bin/date >> /date.log)
>=20
> I've had no luck filtering it out so far.
>=20
> I have spent several days researching cron and syslogd (both for Cygwin
> and Linux) on the net.  While there's a lot of very useful information I
> haven't been able to resolve this specific issue.

I'm not trying to do what you want, I just want my logs to look normal and =
see
them using multitail (which colorizes the output among other things) so I
changed the source code to show just "cron" on those log lines, it's in cro=
n.c
line 67, just change argv[0] with "cron".

After compiling and installing the changed version I'm getting this ugly me=
ssage:

Apr  1 18:33:31 b kernel: cron[2812]: segfault at 004060C2 rip 00402986 rsp
0022E850 error 6

But cron is working normally, so it may be just a non related problem (poss=
ibly
due to using a Cygwin snapshot because I've seen a couple of these before).
--=20
Ren=E9 Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019