NetBSD-Users archive

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

Re: uptime, where art thou ?



On Tue, Apr 22, 2008 at 10:25:27AM +0200, Zafer Aydogan wrote:

> Thanks, but I meant, how can I find out the uptime, before the reboot
> has taken place. The one that got lost.

#!/bin/sh
cd /var/log
gzip -d wtmp.*
for f in wtmp.*; do
last -f $f reboot
done

(Subtraction has to be done manually. This is assuming
 that your clock was running correctly.)

        is


Home | Main Index | Thread Index | Old Index