1838334 Members
3146 Online
110125 Solutions
New Discussion

CDE session autologout

 
SOLVED
Go to solution
JUAN VIDAL_1
Advisor

CDE session autologout

Hi,
how to automatically logout a CDE session when there is no activity? (HP-UX 11.11)

TIA&BR,

Juan.
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: CDE session autologout

Shalom Juan,

You would need to configure CDE to read variables like TMEOUT

http://docs.hp.com/en/5971-2271/5971-2271.pdf

http://safari.ibmpressbooks.com/0131018833/ch14lev1sec7

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
JUAN VIDAL_1
Advisor

Re: CDE session autologout

Shalom Steve,
thanks for your response.
I've read the pdf doc but I'm sorry I cannot find where to enable variables like TIMEOUT.
Regarding the Safari link, I tryied to
TIMEOUT=1/export TIMEOUT but nothing...
Is that ok?
Bill Hassell
Honored Contributor

Re: CDE session autologout

The variable is TMOUT, not TIMEOUT -- assuming you are using a standard POSIX shell such as ksh, sh (HP's POSIX shell) or something like bash. If you are using csh or similar, then the variable is autologout. TMOUT is in seconds while autologout is in minutes.

NOTE: This is a shell timeout. The user must be sitting at a shell prompr, not a menu or vi, or some other program. It will only close the shell window. It will not close the CDE desktop or any other Xwindow applications.


Bill Hassell, sysadmin
JUAN VIDAL_1
Advisor

Re: CDE session autologout

Ok, got it...so, ur telling me that there is no way (automatic) to close a whole CDE desktop/session?
Chris Vail
Honored Contributor

Re: CDE session autologout

There's not really a way that I know of to time out a CDE session. However, it is very easy to configure the screen saver to lock the terminal after a period of non-use.

My approach would be to write a shell script to run as a daemon, to watch for inactive sessions and kill it. It would not be difficult to write.


JUAN VIDAL_1
Advisor

Re: CDE session autologout

Hi Chris,
thanks for your response.

How to detect an inactive session and
which process should I kill?

TIA&BR,
Juan.
Bill Hassell
Honored Contributor
Solution

Re: CDE session autologout

There is no easy way to determine what is running is and what is idle. The CDE desktop is just a pretty picture of what the user is doing. One user may have 25 windows open, each with a simple shell prompt and the user goes to lunch. T be a nice thing to do.he TMOUT value will logout the idle shell sessions. Another user is running 25 processes, half of which are computing and require hours to complete. Terminating this user's sessions would not


Bill Hassell, sysadmin