Gentoo Archives: gentoo-user

From: "John J. Foster" <Gentoo-User@××××××××××××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Previous system uptime - not Gentoo specific
Date: Thu, 13 May 2010 23:48:26
Message-Id: 20100513234738.GD4061@magpie.local
In Reply to: Re: [gentoo-user] Previous system uptime - not Gentoo specific by "John J. Foster"
1 On Thu, May 13, 2010 at 05:18:08PM -0600, John J. Foster wrote:
2 > On Fri, May 14, 2010 at 01:02:01AM +0200, Alex Schuster wrote:
3 > > John J. Foster writes:
4 > >
5 > > > I lost utility power for 2 hours today while at work (on my home
6 > > > machine). UPS probably help for 20 minutes, or so. Just out of
7 > > > curiousity, is there a way to determine previous system uptime. I know
8 > > > I was getting close to 11 months, which would be a record for me.
9 > >
10 > > The system logs boot and login dates in /var/log/wtmp, the last command
11 > > shows the content of this binary file.
12 > >
13 > > last | grep "system boot" | head
14 > >
15 > > Hope you broke the record,
16 > > Wonko
17 > >
18 > festus@localhost ~ $ last | grep "system boot"
19 > reboot system boot 2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30 (00:51)
20 >
21 > OK, so after looking at "man last", I tried
22 >
23 > festus@localhost ~ $ last reboot
24 > reboot system boot 2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30 (00:51)
25 >
26 > wtmp begins Sat May 1 08:23:36 2010
27 >
28 > which doesn't really help much.
29 >
30 > Any other ideas,
31 > festus
32
33 Damn - log-rotate cleans wtmp monthly
34
35 > --
36 > It is not unusual for those at the wrong end of the club to have a
37 > clearer picture of reality than those who wield it.
38 > Noam Chomsky
39
40
41
42 --
43 It is not unusual for those at the wrong end of the club to have a
44 clearer picture of reality than those who wield it.
45 Noam Chomsky

Replies

Subject Author
Re: [gentoo-user] Previous system uptime - not Gentoo specific Dale <rdalek1967@×××××.com>