Operating System - HP-UX
1820636 Members
1754 Online
109626 Solutions
New Discussion юеВ

Session Timeout ON HPUX machine

 

Session Timeout ON HPUX machine

Hi !

I would like to know how to set idle session time-out and check the timeout setting on HP-UX.

TQVM.
4 REPLIES 4
RikTytgat
Honored Contributor

Re: Session Timeout ON HPUX machine

Hi,

There is a shell environment variable called TMOUT. Set this to a value different from zero and the shell will time-out after the specified number of seconds of inactivity.

See also sh-posix(1).

Bye,
Rik
T G Manikandan
Honored Contributor

Re: Session Timeout ON HPUX machine

For sh and ksh you can use

TMOUT=600(in secs)
export TMOUT
Global file /etc/profile

for csh

logout=60(in min)
for all csh users /etc/csh.login
Trond Haugen
Honored Contributor

Re: Session Timeout ON HPUX machine

As mentioned setting TMOUT will make the shell time out and exit (logout). But this only works for a shell. Not for applications or "other things".

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Balaji N
Honored Contributor

Re: Session Timeout ON HPUX machine

in sh / ksh (man sh-posix)
TMOUT 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. (Note that the shell can be compiled with a
maximum bound for this value which cannot be exceeded.)

in csh (man csh)

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.



hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.