[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dmesg command

Svante Signell, le Mon 31 Oct 2011 19:42:34 +0100, a écrit :
> What about creating a script dmesg doing similar to the following (save
> for syntax errors) :
> if [ "$1" == "-s" ]; then

Making the dmesg behavior change according to being passed -s or not
would be even more convoluted, I really don't think we want to go that
way. Either we manage to provide a dmesg which behaves similarly to
others, or we don't and tools have to cope with it. apt could use
/var/log/kern.log instead for instance.

>   dd if=/dev/klog of=/var/log/dmesg &
>   sleep 1
>   kill $!
> else
>   exec cat /var/log/dmesg
> fi


Reply to: