Page 1 of 1

Detect idle time in linux

Posted: Wed Mar 24, 2010 8:18 am
by yabune
Hi,

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

Thanks!

Re: Detect idle time in linux

Posted: Thu Mar 25, 2010 10:02 pm
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/