- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to disconnect (console) sessions it not used f...
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
03-10-2005 06:23 PM
03-10-2005 06:23 PM
I know how to kill the session, but I don't know how to determine if a console is idle or not.
Is there an environment variable that count the time since the keyboard was used for the last time?
I could do an script called from the cron every 5 minutes if I knew that.
Thank you very much!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 06:33 PM
03-10-2005 06:33 PM
Solutionuse TMOUT parameter in /etc/profile (for all users) or /~username/.profile (individual user).
For example,
TMOUT=1800
readonly TMOUT
this will terminate the idle session after 1800 seconds.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 06:53 PM
03-10-2005 06:53 PM
Re: How to disconnect (console) sessions it not used for a period of time?
is that a common feature to all the flavours of UNIX? I would like to use it on SCO OpenServer as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 07:59 PM
03-10-2005 07:59 PM
Re: How to disconnect (console) sessions it not used for a period of time?
not too sure if other UNIX flavors (i think Solaris and AIX does) also support this.
u may like to test it though.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 08:01 PM
03-10-2005 08:01 PM
Re: How to disconnect (console) sessions it not used for a period of time?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 08:06 PM
03-10-2005 08:06 PM
Re: How to disconnect (console) sessions it not used for a period of time?
AIX support it
rgds
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 09:46 PM
03-10-2005 09:46 PM
Re: How to disconnect (console) sessions it not used for a period of time?
It is not supported in csh (what is?;o), but csh has it's own version of a similar idea.
I don't know about other shells.