Detect idle time in linux

Linux specific forum
yabune
User
User
Posts: 65
Joined: Mon Aug 22, 2005 2:31 pm

Detect idle time in linux

Post by yabune »

Hi,

Is it possible to detect computer idle time in linux with PB?

Thanks!
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Re: Detect idle time in linux

Post by remi_meier »

Which idle time?
You can get one with the command 'w' (you can call
it with runprogram()).
Or for a more graphical idle time take a look at this
blog post:
http://coderrr.wordpress.com/2008/04/20 ... e-in-unix/
Athlon64 3700+, 1024MB Ram, Radeon X1600
Post Reply