I would like to kill a console session if I don't use the keyboard for a period of time, because some times I've forgotten to close the root session (I know, I'm very...)
I know how to kill the session, but I don't know how to determine if a console is idle or not.
Is there an environment variable that count the time since the keyboard was used for the last time?
I could do an script called from the cron every 5 minutes if I knew that.
Thank you very much!!