- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shell timeout on c shell
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
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
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
тАО04-03-2002 11:53 PM
тАО04-03-2002 11:53 PM
How can I disconnect sessions on the c shell using the TMOUT variable.
Thanks
G Manikandan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2002 12:04 AM
тАО04-04-2002 12:04 AM
Re: shell timeout on c shell
Hi,
I think the TMOUT variablee is for
the ksh and sh shell.
For cshell you will have to set this
variable:
set autologout=60
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2002 12:05 AM
тАО04-04-2002 12:05 AM
Re: shell timeout on c shell
You need autologout .
Autologout and Tmout
The C shell, Korn shell, and POSIX shell have an autologout feature. For C shell users, if the "autologout" environment variable is set to a number other than 0, the shell will be logged out after the specified number of minutes have passed. For Korn shell and POSIX shell users, the TMOUT environment variable specifies the number of minutes before the shell logged out. A value of 0 indicates the shell should not be logged out.
What version of HP-UX do you have.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2002 12:09 AM
тАО04-04-2002 12:09 AM
Re: shell timeout on c shell
But is it possible with c shell?
I know how it work on korn and it's this:
/etc/profile is read by all users when they log on. The permissions
on /etc/profile are normally read-only. Thus non-root-capable users
can not change /etc/profile. This is the place the make the change.
Add the following in /etc/profile:
TMOUT=
readonly TMOUT
export TMOUT
In this way the users can't change TMOUNT
bye bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2002 12:28 AM
тАО04-04-2002 12:28 AM
Re: shell timeout on c shell
Autologout
A new shell variable has been added called autologout . If the terminal remains idle (no character input) at the shell's top level for a number of minutes greater than the value assigned to autologout ,
you are automatically logged off. The autologout feature is temporarily disabled while a command is executing. The initial value of autologout is 60. If unset or set to 0, autologout is entirely disabled.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2002 12:50 AM
тАО04-04-2002 12:50 AM
Re: shell timeout on c shell
Regards,
Ceesjan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2002 01:50 AM
тАО04-04-2002 01:50 AM
Re: shell timeout on c shell
Even as someone above has mentioned that even if a process is acting it won't termintate the session,then why should it show the session idle time in the finger command.
I have the autologout set to 600.i.e.10min.
But even when I open a session and wait there idle it is not terminating it.
Please help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2002 01:53 AM
тАО04-04-2002 01:53 AM
Re: shell timeout on c shell
The value is in minutes, not seconds.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2002 03:23 AM
тАО04-04-2002 03:23 AM
SolutionIt does work.
I switched to c-shell and ran "set autologout=1"
After a minute, csh printed a message "auto-logout" and I was returned to the original shell.
An interesting point is that I was not able to change the value of $autologout using the "setenv autologout 1" syntax. No error reported, but $autologout remained at the default value of 600.
"set autologout=1" did the trick.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2002 03:31 AM
тАО04-04-2002 03:31 AM
Re: shell timeout on c shell
All variables documented in the (t)csh manual pages are to be set using 'set', not 'setenv'
Be aware the some shells support 'readonly', so a variable cannot be changed after that
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2002 03:32 AM
тАО04-04-2002 03:32 AM
Re: shell timeout on c shell
My setting was autologout=600 which I thought as 600 seconds.
Thanks for confirming that the value is in minutes.
Thanks for all who responded.
Thanks