Idle X session

Jonathan Chen (jonachen) jonachen at cisco.com
Mon Aug 8 22:32:02 UTC 2005


Hello All,

I'm trying to write a script to kill idle X session on RHEL3 and I need
a command or something to help me find out how long a person has been
idle.

The 'w' works great if your only doing things in terminal session.   But
that command does not work for X session like KDE.  In the "IDLE"
column, it basically list how long you have been on the system and NOT
reset when you mouse your mouse or clicking on something in X windows.

So anyone know of a way?




More information about the redhat-list mailing list