HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

timeout

 
SOLVED
Go to solution
himacs
Super Advisor

timeout

HI admins,

how to set timeout in /etc/progile file.I need to set the same with 60 seconds.

regards
himacs
4 REPLIES
Mel Burslan
Honored Contributor
Solution

Re: timeout

export TMOUT=60

insert it into /etc/profile

HTH
________________________________
UNIX because I majored in cryptology...
Suraj K Sankari
Honored Contributor

Re: timeout

Hi,

You can put this way also in your .profile
export TMOUT=60

or

TMOUT=60
export $TMOUT

Suraj
James R. Ferguson
Acclaimed Contributor

Re: timeout

Hi:

If you want to establish a timeout that cannot be overridden by the user, use this in the '/etc/profile' for Posix and Korn shells:

# readonly TMOUT=60;export TMOUT

Remember that the timeout begins only when the shell is at the PS1 prompt.

Regards!

...JRF...
OldSchool
Honored Contributor

Re: timeout

also see this thread:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1348200


as JRF noted, this only applies when a user is sitting at the command prompt. If they are idle in an application or shell script, its not going to work.