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:
Reply To:
Date:
Sat, 10 Dec 2011 23:12:58 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (19 lines)
On 2011/12/10 14:17, Bluejay Adametz wrote:
>>   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 ....".
>
> Perhaps an entry in /etc/rsyslog.conf to direct messages of the
> desired type to /dev/tty11?
>
>> I don't practice this myself, but I suspect an entry in /etc/inittab like this would
>> suffice:
>> tty11::respawn:/usr/bin/tail -f /var/log/messages
>
> That might run into problems when the messages log file rolls over.

tail --follow=name -n 100 --retry --max-unchanged-stats=5 /var/log/messages

{^_^}

ATOM RSS1 RSS2