Looking for speaker for gnu autoconf/automake
Rich Braun
richb at pioneer.ci.net
Thu Apr 8 13:21:26 EDT 1999
Christoph wrote:
> If not mistaken, I believe uptime gets it's starting time from utmp (utmpx).
> If so, it's probably not very difficult to play games and improve your
> yearly bonus for system availablity ;-)
>
> I bet there's a perl module to muck with utmp. Look at the source code for
> uptime and see what it does...
I did a 'strings command and confirmed that it picks this up from
/proc/uptime, a kernel runtime counter; you could write a hack to poke
the appropriate memory location.
Then I looked at the source code--if it can't find /proc/uptime, it'll get
the info from utmp, as described by Christoph.
-rich
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list