Shell timeouts

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
(New page: 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 ...)
(Bourne shell)
Line 16: Line 16:
== Bourne shell ==
== Bourne shell ==
-
* The Bourne shell has no TMOUT variable nor equivalent. See [http://unix.compufutura.com/korn/ch05_01.htm].
+
* The Bourne shell has no TMOUT variable nor equivalent [http://unix.compufutura.com/korn/ch05_01.htm].

Revision as of 18:18, 23 September 2008

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 [1].
Personal tools