From owner-freebsd-questions Fri May 11 10:15: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from blackhelicopters.org (geburah.blackhelicopters.org [209.69.178.18]) by hub.freebsd.org (Postfix) with ESMTP id BED0E37B423 for ; Fri, 11 May 2001 10:15:00 -0700 (PDT) (envelope-from mwlucas@blackhelicopters.org) Received: (from mwlucas@localhost) by blackhelicopters.org (8.9.3/8.9.3) id NAA28258; Fri, 11 May 2001 13:14:34 -0400 (EDT) (envelope-from mwlucas) Date: Fri, 11 May 2001 13:14:34 -0400 From: Michael Lucas To: Jonathan Fortin Cc: questions@freebsd.org Subject: Re: syslog.conf && executing programs Message-ID: <20010511131433.A28242@blackhelicopters.org> References: <20010511110227.A27757@blackhelicopters.org> <004f01c0da2f$680eeaa0$020a10ac@node00> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <004f01c0da2f$680eeaa0$020a10ac@node00>; from jfortin@akalink.com on Fri, May 11, 2001 at 11:31:10AM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm not trying to rotate, I want every message immediately emailed to me. But thanks. On Fri, May 11, 2001 at 11:31:10AM -0400, Jonathan Fortin wrote: > 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 > > -- 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