Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


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

Looking for speaker for gnu autoconf/automake



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).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org