Monitor User Activity

How can I track a user's mouse or keyboard activity? I am looking for a way to auto-logoff a user from a specific application if they have not touched their workstation in a specified amount of time. Any clues that can be passed my way will be appreciated =)
[273 byte] By [fisher_omega] at [2007-11-25 23:06:57]
# 1

You might want to post this in one of the software forums. You might get a better answer than mine.

I can point you in some direction but it will involve writing a script. Off the top of my head you can use the output of the "w" command to see how long the user has been idle. It will not be clean but for users that idle of a determined amount of time have the script "kill" the users process or login shell.

Be careful....I don't know what application you are looking to stop but there is always a chance that it might cause corruption or loss of data.

It is not the cleanest or prettiest.

error at 2007-7-5 17:58:04 > top of Java-index,Sun Hardware,Workstations - General Discussion...