Date: Thu, 10 May 2001 19:26:33 +0200 From: morten@hotpost.dk To: freebsd-questions@freebsd.org Subject: Re: dmesg buffer between reboots Message-ID: <20010510192633.B560@hotpost.dk> In-Reply-To: <001b01c0d952$246e54d0$0701a8c0@darryl>; from darryl@osborne-ind.com on Thu, May 10, 2001 at 08:07:17AM -0500 References: <200105100308.XAA01149@scarlet.my.domain> <001b01c0d952$246e54d0$0701a8c0@darryl>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10, maj, 2001 at 08:07:17 -0500, Darryl Hoar wrote: > dmesg > dmesg_sav. Puts the contents into a file name for > preservation. The question then becomes, how to automate > it so that it is done everytime before shutdown. I've been using this in /etc/rc.local (on OpenBSD though, but should be the same on FreeBSD): # writing dmesg to file if [ -x /sbin/dmesg ]; then export BOOT_TIME=$(date "+%Y-%m-%d_%H:%M:%S"); echo -n ' dmesg'; /sbin/dmesg > \ /var/log/dmesg/dmesg_$BOOT_TIME; gzip -9 \ /var/log/dmesg/dmesg_$BOOT_TIME fi -- lynx -source http://home1.stofanet.dk/liebach/pgpkey.html | gpg --import - UNIX, reach out and grep someone! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010510192633.B560>