A few days back some one has asked how to logout a user (on node) if he is
idle for some time.
The 'w' command has the answer.
Run 'w -t' you and you  will get the list of user connected with last column
as idle time (since last key pressed). No matter what the user is running.
Run a single line bash command to kill the user with specific idle time and
put it in 'crod' or use 'at'.
I hope that this helps.
Regards,
Mukund Deshmukh
Beta Computronics Pvt. Ltd.
Web Site - www.betacomp.com




----------------------------------------------
LIH is all for free speech.  But it was created
for a purpose.  Violations of the rules of
this list will result in stern action.

Reply via email to