From owner-freebsd-questions@FreeBSD.ORG Sat Apr 5 12:12:37 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92E1337B401 for ; Sat, 5 Apr 2003 12:12:37 -0800 (PST) Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9D3D43FBF for ; Sat, 5 Apr 2003 12:12:36 -0800 (PST) (envelope-from Hostmaster@Video2Video.Com) Received: from adsl-66-122-241-195.dsl.sndg02.pacbell.net ([66.122.241.195]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 HotFix 1.6 (built Oct 18 2002)) with ESMTP id <0HCW00D07050E9@mta6.snfc21.pbi.net> for FreeBSD-Questions@FreeBSD.Org; Sat, 05 Apr 2003 12:12:36 -0800 (PST) Date: Sat, 05 Apr 2003 12:14:03 -0800 (PST) From: Peter Leftwich X-X-Sender: root@Www.Video2Video.Com To: SDBUG Message-id: <20030405120505.C334-100000@Www.Video2Video.Com> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT cc: FreeBSD Questions LIST Subject: /var/log/wtmp and /var/log/system/log.* X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 20:12:37 -0000 Apparently there was a power outage in my area of San Diego this morning sometime between 8:56 AM (the last time that gaim (multi-userID chat program) logged a sign on or sign off) and 11:25 AM (when I got out of bed). I'm wondering why FreeBSD (and in general, all Unix flavors), don't do this: * Every minute, on the minute, "touch /var/log/system/log.`date +%m%d%y`" That way, whether a user is logged in or not, and a system gets rebooted or shutdown (hard), the sysadmin can supplement /var/log/wtmp with accurate information and thus reconstruct what the uptime would have been for that "power-on session." Can someone comment on what to use for the "at" command command-line, and whether I'd put this in /usr/local/etc/rc.d/SOMETHING.sh or where? I think this is an interesting omission from Unixes in general. What's your opinion? -- Peter Leftwich President & Founder, Video2Video Services Box 13692, La Jolla, CA, 92039 USA http://Www.Video2Video.Com