is there a way to have root-tail display what dmesg puts out?
Like "dmesg | root-tail" --- but dmesg creates output only once.
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
I do not know about "root-tail" command but ..
"dmesg | tail -f" may do interesting thing
> tail -f /var/log/kern.log
The "tail -f" waits for more output from dmesg, but dmesg won't
produce any more output. dmesg is supposed to print the contents of
the kernel buffer; it does exactly that and then ends. It also doesn't
have an option like -f to tell it to "keep printing" ...
That log file is empty ...
> The "tail -f" waits for more output from dmesg, but dmesg won't
> produce any more output. dmesg is supposed to print the contents of
> the kernel buffer; it does exactly that and then ends. It also doesn't
> have an option like -f to tell it to "keep printing" ...
Not sure why the OP wants to use dmesg - on my run-of-the-mill lenny
system nothing appears to be written to the kernel ring buffer after
booting anyway - and that's after issuing a "dmesg -n 8" to try to raise
the logging level (at least that's what I'm guessing after reading the
dmesg man page).
Maybe he could tell us what he wants to achieve?
In most circumstances, the contents of /var/log/{messages|syslog} would
seem to be more appropriate if all he wants is to keep an eye on system
activity.
?
Note that one feature of "less" that I have found to be useful is that
it can be caused to refresh the display automatically via the Shift-f
command.
Hit Ctrl-C to leave update mode and then you can page up to check what
went down previously.
CJ
$ grep kern.log /etc/rsyslog.conf
kern.* -/var/log/kern.log
--
Tzafrir Cohen | tza...@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tza...@cohens.org.il | | best
ICQ# 16849754 | | friend
# tail -f /var/log/dmesg
--
With Regards
Abhishek Amberkar
Learn to appreciate the beauty within...