- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Inactivity Logout
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
тАО09-02-2010 12:30 AM
тАО09-02-2010 12:30 AM
Re: Inactivity Logout
So , 60 seconds is something hard coded OR default in somewhere as countdown to the termination ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2010 01:04 AM
тАО09-02-2010 01:04 AM
Re: Inactivity Logout
In the sh-posix case it appears to emit the warning 60 seconds after the $TMOUT period has elapsed and then terminate 60 seconds after the warning.
I'll do a better timing with bash to confirm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2010 01:24 AM
тАО09-02-2010 01:24 AM
Re: Inactivity Logout
First: Call ssh and prime a call on date for when we return
[jimw@jimwpc3 ~]$ ssh pocuast2;date
Last login: Thu Sep 2 20:02:24 2010 from 10.81.105.17
Value of TERM has been set to "xterm".
WARNING: YOU ARE SUPERUSER !!
[root@pocuast2 /root ] exec bash
[root@pocuast2 root] date;export TMOUT=120
Thu Sep 2 21:05:57 NZST 2010
[root@pocuast2 root]
[root@pocuast2 root] timed out waiting for input: auto-logout
Connection to pocuast2 closed.
Thu Sep 2 21:08:00 NZST 2010
[jimw@jimwpc3 ~]$
As you can see, the total duration was about a little over TWO minutes.
Next I logged a sh-posix session:
[jimw@jimwpc3 ~]$ ssh pocuast2;date
Last login: Thu Sep 2 21:05:13 2010 from 10.81.105.17
Value of TERM has been set to "xterm".
WARNING: YOU ARE SUPERUSER !!
[root@pocuast2 /root ] date;export TMOUT=120
Thu Sep 2 21:17:24 NZST 2010
[root@pocuast2 /root ]
Shell will time out in 60 seconds.
sh: Timed out waiting for input.
Connection to pocuast2 closed.
Thu Sep 2 21:20:24 NZST 2010
[jimw@jimwpc3 ~]$
As you can see, POSIX shell users get a wrning and an extra 60 seconds ;O)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2010 10:42 PM
тАО09-02-2010 10:42 PM
Re: Inactivity Logout
>...prompt. A minute later the session disconnects.
Yes.
>Hakki: 60 seconds is something hard coded
TGRACE is hard coded as 60.
>Jim: In the sh-posix case it appears to emit the warning 60 seconds after the $TMOUT period has elapsed and then terminate 60 seconds after the warning.
My experiments with real shells indicate you get TMOUT, then you get a 60 grace period. Then:
sh: Timed out waiting for input.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2010 11:47 PM
тАО09-02-2010 11:47 PM
Re: Inactivity Logout
>Jim: >>
My experiments with real shells indicate you get TMOUT, then you get a 60 grace period. Then:
sh: Timed out waiting for input.
So , Timeout gracely manner is valid for POSIX and other shells like KSH;
# ksh
# echo $0
ksh
# export TMOUT=5
#
shell time out in 60 seconds
((AFTER 60 seconds, because I changed my shell from POSIX to ksh,otherwise it would be terminated))
ksh: timed out waiting for input
- « Previous
-
- 1
- 2
- Next »