Per Jessen wrote:
Dave Howorth wrote:
Per Jessen wrote:
I'd like to have an idle timeout on my virtual consoles - does something like that already exist, e.g. as an option somewhere that just needs a '#' removed?
Not entirely sure if this is what you want but from man bash:
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.
Cheers, Dave
Thanks Dave - that seems to do the trick. I'll be making a few more tests, but initially I just set TMOUT in /etc/profile.local and that worked.
Next question - what is the right/correct way to determine if /etc/profile.local is being run from a local console? (I'm not sure what the correct term is?) I only want set the timeout when someone is logged in as root locally. /Per -- Per Jessen, Zürich (20.6°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org