[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-questions
Subject:    Re: how to disable console messages being printed on the console?
From:       Richard Krush <richard_k () gmx ! net>
Date:       2000-12-31 21:19:28
[Download RAW message or body]

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 #3 (application/pgp-signature)]
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic