Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VC12 and Metalog
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
DefconAlpha
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 151
Location: Alabama

PostPosted: Wed Apr 09, 2003 4:59 pm    Post subject: VC12 and Metalog Reply with quote

I remember in RC1 when you went to VC12 you would have the system's log on it; updated whenever anything was put in the system log. I have since upgraded to RC3, and lost the nifty vc12 metalog output. I was talking to one of my other good linux friends when he told me to add a line to my /etc/inittab:

Code:
c12:12345:respawn:/usr/bin/tail -f /var/log/everything/current &>/dev/vc/12


And now i have metalog on VC12.
yaaaaaaaaaaaaaaaaaaaaay.
(i wanna go to hawai'i. yaaaaaaaaaaaaaaaaaaaaaaaay)

Any theoretically, it will output any text file to one of your unused consoles (usually 8 - 12 on a graphical system, 7 - 12 on a console system). I am not sure if syslogd or any of the other system loggers use /var/log/everything/current as the log, so your mileage may vary if you aren't using metalog.

Cheers
_________________
In the end, the love you get is equal to the love you make
--John Lennon & Paul McCartney (The End - Abbey Road,
Back to top
View user's profile Send private message
DefconAlpha
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 151
Location: Alabama

PostPosted: Wed Apr 09, 2003 5:02 pm    Post subject: Oh wait Reply with quote

I shoud've explained the line:

c12:12345:respawn:/usr/bin/tail -f /var/log/everything/current &>/dev/vc/12

c12 == label for the console (anything works)
12345 == runlevels (probably should leave it at 12345)
respawn == definitely need this if it dies
everything else is the command. hell you could probably have a pine or BitchX client on it... Hrm... the ideas... :)
_________________
In the end, the love you get is equal to the love you make
--John Lennon & Paul McCartney (The End - Abbey Road,
Back to top
View user's profile Send private message
barran
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jan 2003
Posts: 142
Location: Århus, DK

PostPosted: Wed Apr 09, 2003 5:18 pm    Post subject: Reply with quote

Isnt it better to use -F than -f with tail? Eg. tail -F somefile.
Back to top
View user's profile Send private message
ferris5
n00b
n00b


Joined: 02 Sep 2003
Posts: 32

PostPosted: Mon Oct 20, 2003 9:46 am    Post subject: Reply with quote

hi,

Works great , only how do i change the settings of the display on vt12 because some text are "falling" from my screen.

thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum