Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Telnet session terminates after inactivity 1

Status
Not open for further replies.

SkullyWV

IS-IT--Management
Jul 23, 2002
11
US
Is there a way to keep a telnet session alive in AIX
I have not timed it but it looks like 15min of inactivity gets you kicked.
I have tried:
run=1
while [ $run=1 ]
do
ping -qc1 MY.IP.ADDRESS
sleep 300
done
This does not work, I still get kicked.
Any ideas?
Skully
 
Check your .profile or any environment files it may call to see if you have a TMOUT=<# of seconds>. Also check the /etc/profile file to see if there is a TMOUT= statement there. That may be what is causing this. If it's in /etc/profile, you could probably put unset TMOUT in your .profile so it won't affect you. Or, just comment it out in /etc/profile.
 
My mistake. putting unset TMOUT in your .profile won't work. Maybe someone else would know how to get around it if TMOUT is in the /etc/profile?
 
This is what you need to avoid time out. Add the following variable in your .profile file:

TMOUT=0;export TMOUT

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top