Shell timeouts

From Brandonhutchinson.com

Revision as of 18:17, 23 September 2008 by Hutch (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

To terminate sessions after a period of inactivity, use the following shell variables:

bash/ksh

    TMOUT
         If set to a value  greater  than  zero,  the  value  is
         interpreted  as the number of seconds to wait for input
         after issuing  the  primary  prompt.   Bash  terminates
         after  waiting for that number of seconds if input does
         not arrive.

csh

  • set autlogout=seconds

Bourne shell

  • The Bourne shell has no TMOUT variable nor equivalent. See [1].
Personal tools