Re: output of var/log/messages on the terminal

2011-12-30 Thread jdow

On 2011/12/10 12:54, Mark Stodola wrote:

On 12/10/2011 1:49 PM, Andrew Z wrote:

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

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

-Mark


In the dark ancient past I discovered these two options helped get through
log rotations:  --retry --max-unchanged-stats=5

{^_^}


output of var/log/messages on the terminal

2011-12-10 Thread 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


Re: output of var/log/messages on the terminal

2011-12-10 Thread Mark Stodola

On 12/10/2011 1:49 PM, Andrew Z wrote:

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
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

-Mark


Re: output of var/log/messages on the terminal

2011-12-10 Thread Bluejay Adametz
  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.

 - Bluejay Adametz, CFII, AP, AA-5B N45210

Definition: Snuggage n. The act of retying both shoestrings when only
one needed it.
NOTICE: This message, including any attachments, is only for the use of 
the intended recipient(s) and may contain confidential and privileged 
information, or information otherwise protected from disclosure by law.  
If the reader of this message is not the intended recipient, you are 
hereby notified that any use, disclosure, copying, dissemination or 
distribution of this message or any of its attachments is strictly 
prohibited.  If you received this message in error, please contact the 
sender immediately by reply email and destroy this message, including all 
attachments, and any copies thereof. 



Re: output of var/log/messages on the terminal

2011-12-10 Thread Florian Philipp
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



signature.asc
Description: OpenPGP digital signature


Re: output of var/log/messages on the terminal

2011-12-10 Thread jdow

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

{^_^}