[NCLUG] /var/log/message to console...

dann dannf at dannf.org
Wed Jun 13 21:00:36 MDT 2001


yeah - output redirection is allowed in /etc/inittab (at least on my system)

On Wed, Jun 13, 2001 at 10:01:29AM -0600, Michael Dwyer wrote:
> I suppose you could add a line in you /etc/inittab like this:
> 
> lg:34:respawn:/usr/bin/tail -f /var/log/syslog >/dev/tty7
> ^  ^     ^       ^
> |  |     |       + Name of command to run.
> |  |     + If it dies, start it again.
> |  + Which runlevels to work in.  3 is a text-mode level, 4 is X
> |    May be different for other runlevels.
> + Generally meaningless identifier.
> 
> I'm not sure the redirection would work without the context of a
> shell... and you would still have to kill the tail process (and let Init
> start a new one) every time the log rotator woke up.  But it /might/
> work...

-- 

dannf at dannf.org 



More information about the NCLUG mailing list