- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Guide on TMOUT settings// what shall happen to a c...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 04:24 AM
тАО12-09-2009 04:24 AM
I am setting the TMOUT variable to 900 and making that readonly.
export TMOUT=900
readonly TMOUT
What shall happen to the make_tape_recovery command that invoked from the shell is going to take more time than this setting.that is is that period considered as inactivity of the console and shall that terminal close and the process of that command terminate?
i know that a command can be executed like
#nohup
If i do not use nohup for the same.
Of Any Database process is initiated from a Terminal set with this TMOUT setting and that takes more time to execute then what shall happen to that terminal and the associated process?
Regards
sujit
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 04:49 AM
тАО12-09-2009 04:49 AM
Re: Guide on TMOUT settings// what shall happen to a command executed that shall be taking more time to
If you are running a process in the shell's foreground, the process will complete in whatever time it needs before the idle timeout period begins.
If you run a process in the background you need to add the 'nohup' to immunize the process from a hang-up when the idle timeout of the shell is reached.
Database processes will probably daemonize themselves at startup and thus will have their parent process as 'init' (pid=1). In this case they are immune from any shell timeout once started.
You can verify these behaviors with simple 'sleep' commands in various scenarios.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 05:05 AM
тАО12-09-2009 05:05 AM
Re: Guide on TMOUT settings// what shall happen to a command executed that shall be taking more time to
sorry for not able to comprehend your post properly.
>> If you are running a process in the shell's foreground, the process will complete in whatever time it needs before the idle timeout period begins.
that is if make_tape_recovery say takes 45 mins and i execute that from a shell where TMOUT is 900 then shall the TMOUT count begin if i leave the terminal unattended and make_tape_recovery completes.or is that TMOUT count starts from the time the command is executed and the terminal left untouched.
Suppose a Query for a report is made using a command and that takes 1 hour to complete, is in that case also when the command is executed and the terminal is left unattended is the TMOUT count going to happen after the query invoked by the command is complete?or is that TMOUT count starts from the time the command is executed and the terminal left untouched.
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 06:32 AM
тАО12-09-2009 06:32 AM
Solution> that is if make_tape_recovery say takes 45 mins and i execute that from a shell where TMOUT is 900 then shall the TMOUT count begin if i leave the terminal unattended and make_tape_recovery completes.or is that TMOUT count starts from the time the command is executed and the terminal left untouched.
The timeout countdown begins when the command finishes executing.
> Suppose a Query for a report is made using a command and that takes 1 hour to complete, is in that case also when the command is executed and the terminal is left unattended is the TMOUT count going to happen after the query invoked by the command is complete?or is that TMOUT count starts from the time the command is executed and the terminal left untouched.
If the query (command) is running as a process of the shell, then the countdown begins when the command finishes, otherwise the countdown begins immediately after the command is entered.
Constructing test scenarios with a simple 'sleep' is useful to an understanding.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 07:34 AM
тАО12-09-2009 07:34 AM
Re: Guide on TMOUT settings// what shall happen to a command executed that shall be taking more time to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2009 07:35 AM
тАО12-09-2009 07:35 AM
Re: Guide on TMOUT settings// what shall happen to a command executed that shall be taking more time to
Closing the thread.
regards
sujit