From owner-freebsd-questions Sun Dec 31 14: 3:24 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 31 14:03:21 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id D867137B400 for ; Sun, 31 Dec 2000 14:03:20 -0800 (PST) Received: (qmail 23467 invoked by uid 0); 31 Dec 2000 22:03:19 -0000 Received: from evrtwa1-ar5-105-033.elnk.dsl.gtei.net (HELO bsd.localnet) (4.35.105.33) by mail.gmx.net (mail09) with SMTP; 31 Dec 2000 22:03:19 -0000 Received: (from richard@localhost) by bsd.localnet (8.11.1/8.11.1) id eBVLJSN05104 for freebsd-questions@freebsd.org; Sun, 31 Dec 2000 13:19:28 -0800 (PST) Date: Sun, 31 Dec 2000 13:19:28 -0800 From: Richard Krush To: freebsd-questions@freebsd.org Subject: Re: how to disable console messages being printed on the console? Message-ID: <20001231131928.B4976@bsd.localnet> Mail-Followup-To: freebsd-questions@freebsd.org References: <20001231183256.A15303@xs4all.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="JP+T4n/bALQSJXh8" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001231183256.A15303@xs4all.nl>; from rene@xs4all.nl on Sun, Dec 31, 2000 at 06:32:56PM +0100 X-Operating-System: FreeBSD 4.2-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --JP+T4n/bALQSJXh8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 31, 2000 at 06:32:56PM +0100, rene@xs4all.nl wrote: > hi :) Happy New Year, everyone ;-) >=20 > Quick dumb question: How can I turn off printing of console messages on > the console? I prefer to check /var/log/messages every once in a while... >=20 You will need to edit the file called /etc/syslog.conf and replace every "/dev/console" with "/var/log/messages". Then once you edited the file, you will need to restart syslogd ('killall syslogd' should do it). I would recommend reading the manpage(s) for syslogd and syslog.conf before doing anything, though. > Eventually I'll want something that automagically mails me the entries in > /var/log/messages, but for now I just want printing them on the console > screen turned off. >=20 This can be done by editing /etc/syslog.conf as well. I'm not sure how to do it (and I don't want to read the manpage for you), but IIRC it is something like: security.* |exec /usr/bin/mail yourlogin Again, you should check the manpage for syslog.conf before doing it. --=20 | Richard Krushelnitskiy | "A mathematician is a blind man in a dark room | | ^^^^^^^ ^^^^^^^^^^^^^^ | looking for a black cat which isn't there." | | richard_k@gmx.net | -- Charles Darwin | --JP+T4n/bALQSJXh8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: Hof6suX1bCC6OmK3KG7LdzJy/8gFX0jC iQEVAwUBOk+i3jJvb3cuxLsVAQE6EQgAlwDATeb2oF8XgyOUZMpHWUbu/GGec8Rg tb7Pde/SpsmUC36DA8zkbXtOn/1Rnl65L0kwwmEVieRzKN+NppOu2AujhXIp9YR1 N4QMCsk+v/8xCTd8nMsv/RnmogPUUqyCUuVXbUo9WwGaE0PhyV9lHbMN7BOBoiKO YDGBlKACYcblwRCg0+mdqHNFMoswvruFjNpUKHbw0jayvP/UNHPlBQVyOsyA3g5A Mu1siQhm7ElOMTKTisM3QbhhY/E1VTPPcwmN2IHlq++yF37nT9cmbFLO7uImLc0j L/JmYmolO9wSDsD9uIyHduMuHbFdwka9TAPTNXXVI8PpyXqP9G1u9w== =1YNa -----END PGP SIGNATURE----- --JP+T4n/bALQSJXh8-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message