Date: Sun, 31 Dec 2000 13:19:28 -0800 From: Richard Krush <richard_k@gmx.net> To: freebsd-questions@freebsd.org Subject: Re: how to disable console messages being printed on the console? Message-ID: <20001231131928.B4976@bsd.localnet> In-Reply-To: <20001231183256.A15303@xs4all.nl>; from rene@xs4all.nl on Sun, Dec 31, 2000 at 06:32:56PM %2B0100 References: <20001231183256.A15303@xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Sun, Dec 31, 2000 at 06:32:56PM +0100, rene@xs4all.nl wrote:
> hi :) Happy New Year, everyone ;-)
>
> 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...
>
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.
>
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.
--
| 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 |
[-- Attachment #2 --]
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001231131928.B4976>
