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
{^_^}