Contents
What to do with the tmout variable in Bash?
Specifically wrt to the TMOUT variable. Another option if gdb is not available is to copy bash to your home directory and patch the TMOUT string in the binary to something else, for instance XMOUX. And then run this extra layer of shell and you will not be timed out.
Where is tmout being set in CentOS 7?
I commented out lines that were setting the timeout variable and making it readonly. An alternative would be to set TMOUT=0 which means to disable the timeout. Man page for bash TMOUT is http://man7.org/linux/man-pages/man1/bash.1.html. The most important change is to comment out the line that made the variable “readonly”.
Do you have to mark readonly as read only in Bash?
readonly command makes it final and permanent until the shell process terminates. If you need to change a variable, don’t mark it readonly. No, not in the current shell. If you wish to assign a new value to it, you will have to fork a new shell where it will have a new meaning and will not be considered as read only.
Why do I get ” excessive read only ” error messages?
Don’t set those variables as readonly. The reason that you’re getting those error messages is that those variables are being modified in files that execute after /etc/profile (e.g. ~/.bashrc ). Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share your research! But avoid …
Why does the SELECT command terminate after tmout?
The select command terminates if the input does not arrive after TMOUT seconds when information is coming from a terminal. In an interactive shell, the value is interpreted as the number of seconds to wait for a line of input after issuing the primary prompt.
Can a user change the value of tmout?
Save and close the file. The readonly command is used to make variables and functions readonly. In other words, your user cannot change the value of the variable called TMOUT. Consider this as a security feature.
What does tmout do on a Linux machine?
TMOUT is a bash variable to auto-logout Linux users when there isn’t any activity. When we set TMOUT value greater than zero, TMOUT is treated as the default timeout for the read command.