Operating System - Tru64 Unix
1828578 Members
4405 Online
109982 Solutions
New Discussion

login timeout question

 
Nestor Gonzalez_1
Occasional Contributor

login timeout question

Hi all...
I would like to know if someone knows how to set up the timeout login in Digital Unix using the Bourne shell. I have read that using korn shell is pretty simple by adding "TMOUT=SECONDS in the /etc/profile but I have no idea the bourne shell.

Thanks for any help you can give me....
2 REPLIES 2
Thomas Bianco
Honored Contributor

Re: login timeout question

bash uses the same variable. from the bash manpage:

TMOUT: If set to a value greater than zero, TMOUT is treated as the default timeout for the read builtin. The select command terminates if input does not arrive after TMOUT seconds when input is coming from a terminal. In an interactive shell, 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.
There have been Innumerable people who have helped me. Of course, I've managed to piss most of them off.
Nestor Gonzalez_1
Occasional Contributor

Re: login timeout question

thanks thomas...thomas, when I execute "echo $SHELL" I see as answer: "/bin/sh"..how can I know if that is the bash or the bourne shell?...and is the same for both shells the way to change the TMOUT parameter? configuring the /etc/profile?


Thanks for your help...