edit this article

Shell Autologout with TMOUT

Adding the TMOUT environment variable to your shell startup scripts will automatically log out of an interactive shell after the specified number of seconds.

Code Listing 1: .bash_profile

// Timeout if no input is given for 1 hour  

From http://www.gentoo.org/news/en/gwn/20040412-newsletter.xml

rate this article:
current rating: average rating: 1.3 (59 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)