On Mon, 20 Mar 2000, Bernhard Rosenkraenzer wrote:
> On Mon, 20 Mar 2000, kapil wrote:
>
> > How to configure my linux server (redhat linux 6.1) to have 12 virtual
> > consoles.
>
> Add to /etc/inittab:
> 7:2345:respawn:/sbin/mingetty tty7
> 8:2345:respawn:/sbin/mingetty tty8
> 9:2345:respawn:/sbin/mingetty tty9
> 10:2345:respawn:/sbin/mingetty tty10
> 11:2345:respawn:/sbin/mingetty tty11
> 12:2345:respawn:/sbin/mingetty tty12
>
> > I also want to run my log files like "/var/log/messages" on one of
> > the virtual consoles.
>
> The easiest way is to simply do
> tail -f /var/log/messages &>/dev/tty12 &
>
That is one way. A slightly less expensive way (process wise) it to skip
line 12 in the inittab and add this line to /etc/syslog.conf
*.* /dev/tty12
then restart syslogd via /etc/rc.d/initd/syslog restart
Another way to do the tail would to use the open program (not usually
installed by default, but very handy) like this:
open -c 12 -- tail -f /var/log/messages
The benefit there is that the tail will not die when you logout of your
shell.
I recommend editing /etc/syslog.conf.
HTH,
Bill Carlson
------------
Systems Programmer [EMAIL PROTECTED] | Opinions are mine,
Virtual Hospital http://www.vh.org/ | not my employer's.
University of Iowa Hospitals and Clinics |
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.