David Stroupe wrote:
I am running a RH7.2 installation. I am doing driver developement
and would like to view the (sometimes) useful prink messages from the
driver in real time without having to type dmesg. Is there a way to
do this?
There is a commented-out line in /etc/syslog.conf that looks like:
#kern.* /dev/console
If uncommented, it would spit all kernel messages onto the console.
If you modify it to:
kern.* /var/log/name-of-printk-messages-file
then "kill -HUP `pidof syslogd`", kernel messages would end up in
the named file which you can watch with "tail -f" rather than the
console.
When you're all done, don't forget to comment out the line and send
the SIGHUP back to syslogd so the file doesn't grow too big. Keep in
mind that the normal log rotation scripts won't know about your new
file, so they won't be processed by it.