From owner-freebsd-questions Fri May 11 8:34: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.akalink.com (akalink.com [64.23.81.14]) by hub.freebsd.org (Postfix) with SMTP id 8E79A37B424 for ; Fri, 11 May 2001 08:33:56 -0700 (PDT) (envelope-from jfortin@akalink.com) Received: (qmail 74377 invoked from network); 11 May 2001 15:32:04 -0000 Received: from unknown (HELO node00) (64.23.81.14) by akalink.com with SMTP; 11 May 2001 15:32:03 -0000 Message-ID: <004f01c0da2f$680eeaa0$020a10ac@node00> Reply-To: "Jonathan Fortin" From: "Jonathan Fortin" To: "Michael Lucas" Cc: References: <20010511110227.A27757@blackhelicopters.org> Subject: Re: syslog.conf && executing programs Date: Fri, 11 May 2001 11:31:10 -0400 Organization: Akalink Communications MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hum syslogd doesnt have logfile rotation functionality. it's called newsyslog that has it and you can use it in any instance to trim files. ----- Original Message ----- From: "Michael Lucas" To: Sent: Friday, May 11, 2001 11:02 AM Subject: syslog.conf && executing programs > Hello, > > I'd like to use syslogd to mail me upon certain events. > > local3.* | /usr/bin/mail -s alert mwlucas > > (I was using swatch, but it gives me trouble with logfile rotation. > Since syslogd has the functionality, why not use it?) > > > The first time something is appended to the log, I get a mail. > > The second time, I get a hang: > > loghost/etc;ps -ax | grep mail > 25711 ?? Is 0:00.00 sh -c /usr/bin/mail -s alert mwlucas > 25712 ?? I 0:00.00 /usr/bin/mail -s alert mwlucas > loghost/etc; > > > Any suggestions? > > > -- > Michael Lucas > mwlucas@blackhelicopters.org > http://www.blackhelicopters.org/~mwlucas/ > Big Scary Daemons: http://www.oreillynet.com/pub/q/Big_Scary_Daemons > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message