SCIENTIFIC-LINUX-USERS Archives

December 2011

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Florian Philipp <[log in to unmask]>
Reply To:
Florian Philipp <[log in to unmask]>
Date:
Sun, 11 Dec 2011 01:02:28 +0100
Content-Type:
multipart/signed
Parts/Attachments:
text/plain (627 bytes) , signature.asc (268 bytes)
Am 10.12.2011 20:49, schrieb Andrew Z:
> gys,
>  how can i send the  /var/log/messages on a designated terminal?
>  i remember some many years ago i saw on of SAs having messages file to
> 11 or 10 terminal from the moment machine booted. The gain - they just
> switch to it instead of typing "tail ....".
> 
> Hope makes sence and thank you in advance.
> Andrew

rsyslogd can write to tty devices just like normal files (well, it
requires special handling but that is done automatically). Just edit
/etc/rsyslog.conf and add a line like this to the rules section:

*.info;mail.none;authpriv.none;cron.none	/dev/tty12

Regards,
Florian Philipp



ATOM RSS1 RSS2