You are not logged in.
Hi archers!
Is there any command or file which can tell for how long I've been idle?
I know that the `w' command shows idle time for non X, but I want something which will work for both X and console.
One of the ideas I had is to `/etc/rc.d/sshd stop' when I've been away for x minutes, and `/etc/rc.d/ssh start' when I get back.
Thank you!
Last edited by Isola (2010-10-14 19:03:13)
Offline
If you want to start/stop sshd when needed/uneeded, use xinetd to dynamically start it per connection.
For running a task on idle, look xautolock.
For something a little more flexable, you could write a python script: http://thp.io/2007/09/x11-idle-time-and … ow-in.html
You could also write a shell script using xprintidle from AUR.
Offline
xprintidle is just what I need! I'll write a little shell script to be executed automatically by cron then. Thank you
Oh! I didn't think about xinetd, I use it for the bitlbee daemon actually. Works perfectly for that. But the other commands I want to be executed won't work with xinet.
Perhaps I should volunteer to one of those grid computing projects when I become idle. Suggestions on which to choose are welcome!
Offline
folding@home IMO
Offline