Shell timeouts
From Brandonhutchinson.com
(Difference between revisions)
(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 ...) |
(→csh/tcsh) |
||
| (2 intermediate revisions not shown.) | |||
| Line 10: | Line 10: | ||
not arrive. | not arrive. | ||
| - | == csh == | + | == csh/tcsh == |
| - | * '''set | + | The autologout shell variable can be set to log out or lock |
| + | the shell after a given number of minutes of inactivity. | ||
| + | |||
| + | * '''set autologout=''minutes''''' | ||
== Bourne shell == | == Bourne shell == | ||
| - | * The Bourne shell has no TMOUT variable nor equivalent | + | * The Bourne shell has no TMOUT variable nor equivalent [http://unix.compufutura.com/korn/ch05_01.htm]. |
Current revision
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/tcsh
The autologout shell variable can be set to log out or lock
the shell after a given number of minutes of inactivity.
- set autologout=minutes
Bourne shell
- The Bourne shell has no TMOUT variable nor equivalent [1].
