krivi n00b
Joined: 29 Jul 2003 Posts: 6 Location: Odense, Denmark
|
Posted: Tue Jul 29, 2003 7:40 pm Post subject: Idle time - how is it measured? |
|
|
Well, this isn't exactly a Gentoo-specific question, I believe, but anyhow...
How does the system determine how long it has been idle? I'm not thinking CPU idle or even HD idle, just how long it hasn't been in use...
I'm thinking of scripting something that'll shut down my PC after some inactivity time (electricity is rather expensive here ) - I was thinking of the output from ''w``, but:
$ w | gawk '{print $4}'
just says "?xdm?"...
Any thoughts?
-Jens _________________ Regards/Hilsen
Jens Villadsen
Odense, Denmark |
|