You are not logged in.

#1 2012-07-29 09:12:58

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

safest way to continuously monitor dmesg in a terminal [solved]

Googling suggests that the following is a safe method to monitor dmesg in a shell.  I'd prefer not to use sudo.  Any suggestions?  Is it safe to chmod 644 /var/log/kernel.log or is that a bad idea?

$ sudo watch /proc/kmsg

or

sudo tail -f /var/log/kernel.log

Last edited by graysky (2012-07-29 19:03:24)

Offline

#2 2012-07-29 09:27:43

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: safest way to continuously monitor dmesg in a terminal [solved]

The group of most log files is 'log' and group has read access, so you could add yourself to the log group (but I don't know if it's used for other things/if this is a good idea).

Offline

#3 2012-07-29 10:10:55

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: safest way to continuously monitor dmesg in a terminal [solved]

Use the log group, it's perfectly safe.

Offline

#4 2012-07-29 19:02:21

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: safest way to continuously monitor dmesg in a terminal [solved]

Raynman wrote:

The group of most log files is 'log' and group has read access, so you could add yourself to the log group (but I don't know if it's used for other things/if this is a good idea).

Nice, thanks!

Last edited by graysky (2012-07-29 19:03:15)

Offline

#5 2012-07-29 19:06:05

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: safest way to continuously monitor dmesg in a terminal [solved]

With linux 3.5 and util-linux 2.22, you'll be able to dmesg --follow.

Offline

#6 2012-07-29 19:50:29

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: safest way to continuously monitor dmesg in a terminal [solved]

falconindy wrote:

With linux 3.5 and util-linux 2.22, you'll be able to dmesg --follow.

Good to know, Dave.  Thank you.  Just waiting for CK to port ck1 from 3.4 to 3.5 smile

Offline

Board footer

Powered by FluxBB