On 11/24/05, Jason Holt <[EMAIL PROTECTED]> wrote: > > > Is there an easy way to find out how long a system has been idle (keyboard > and > mouse-wise), like screensavers do? >
'who -u' will show idle time. With the -u switch who outputs 4 columns, user, port, date/time user logged in, idle time, and remote host. If the idle time column shows a '.' then that means the use has touched the keyboard in the last minutes, otherwise it will show the amount of time idle. From there it's pretty easy to write a script to do what ever you want. At work, I have script that runs every few hours and terminates any remote sessions that are idle for more than two hours, so you could very well write one that speeds up or slows down your fans. Jared -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
