- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Session time out on HPUX machine
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
Forums
Discussions
Discussions
Discussions
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
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
02-04-2004 02:47 PM
02-04-2004 02:47 PM
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2004 03:04 PM
02-04-2004 03:04 PM
Re: Session time out on HPUX machine
If set to a value greater than zero, the shell will terminate if a command is not entered within the prescribed number of seconds after issuing the PS1 prompt. The default is zero, which means unlimited.
does a batch process every issue a prompt?
you can test that out.
of course you can always determine of the shell is interactive/batch and set TMOUT appropriately
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2004 03:15 PM
02-04-2004 03:15 PM
Re: Session time out on HPUX machine
Batch jobs do not login, they just run (ie, cron or bootup processes) so they are unaffected. By convention, batch jobs are not interactive so the timeout has no meaning.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2004 03:22 PM
02-04-2004 03:22 PM
Re: Session time out on HPUX machine
Set it in /etc/profile
If the user is idle in an app like vi, it won't work.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2004 04:22 PM
02-04-2004 04:22 PM
Re: Session time out on HPUX machine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2004 06:39 PM
02-04-2004 06:39 PM
Re: Session time out on HPUX machine
Once my Oracle installation was aborted because ot the TMOUT variable. If the shell that started the (graphical) installation process times out, the children go down too.
I do not fully understand your last question, but:
- you can easily test it using a small TMOUT value?!
- If necessary you may want to use nohup.
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2004 12:15 AM
02-05-2004 12:15 AM
Solution$ oracle_prog some_params &
$
Then the oracle_prog is running in parallel to the shell. However, the shell is still the parent. So if the shell exits, then it's children are also terminated. If you try this:
$ sleep 100 &
[1] 23786
$ exit
There are running jobs.
$
So the shell is telling you that you still have subprocesses or children that will be terminated if the shell exits. If you type exit a second time, then the shell sends a hangup signal (kill -1) to all remaining child processes. If the child uses default handling of the kill -HUP (kill -1) signal then it terminates.
To protect a process that is started in the background from being terminated when the shell exits, nohup is used as a wrapper. It receives the signals and ignores them. Thus when the shell exits, nohup sees the SIGHUP and the protected process continues to run, but is now assigned to init as the new parent.
Bill Hassell, sysadmin