Telnet timout question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Telnet timout question
# 1  
Old 01-18-2005
Telnet timout question

ok here is a little bit on what I am trying to do. I am logged into a saolaris 9 server and telnet to another server to run an application that sits on the second unix / linux server. This application can sit idle for an hour to two and any given time. During this time the telnet session timesout and the users have to relog in. Now granted most of us would just login again but the users are at remote locations and never had this issues until we moved the servers off the local network. We have checked all our firewalls, switches and routers and there not booting the connection. Now if I have one of them use putty or secureCRT with anti-idle settings going they don't timeout. The problem is not all locations have a windows box to install those applications they use standard telnet from a unix terminal. My question is after reading a bunch of stuff is how do I send a nop or NO-OP from a standard telnet term on a unix box? Any help would be great on this or if you know another way I am all ears.

Thanks
# 2  
Old 01-18-2005
There is an environment variable called TMOUT that contains the default number of seconds before a shell timeout occurs. If your session is idle for that duration, you get booted. You can however, over ride this variable (assuming that your local sys admin did not make this a read only variable). To do so in Korn Shell:

export TMOUT=0
# 3  
Old 01-18-2005
I have already made that change in the /etc/profile with no luck as the session still times out after an hour. Any other idea's on how to keep this session from a time out. The bad part is that when they run the app it gives them a menu and they will sit there for hours befor ethey imput things.
# 4  
Old 01-18-2005
Quote:
how do I send a nop or NO-OP from a standard telnet term on a unix box?
Check the man page for telnet for your OS - should allow you to break out to show parameters.

What I see from mine: use Control-] to get to telnet prompt -

Then ? to see commands
mine has a send command
Type in send ? and you should see a nop
# 5  
Old 02-23-2005
Telnet time out

I also have a problem regarding telnet time out(the server is a p5 520 OS is AIX 5.2):
After telneting to the server, if inactive for more than 20 minutes the session is "closed by foreign host". Where is this timeout value set? I've looked at the /etc/profile and the TMOUT variable is commented out and an echo of TMOUT show a value of 0...which appears to mean "no time out set". We suspect that the new F5 switch is causing the problem, not the OS. Were else can I look?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help implementing a timout in my Shell Script for RHEL6

Hey Guys, My problem: I have a script that will be querying the database every minute to see if it gets a response, the response its querying for is "UP" in a table i made called dbup in the database. Now, I am trying to add the component to implement a timeout if the script does not get a... (2 Replies)
Discussion started by: mo_VERTICASQL
2 Replies

2. IP Networking

telnet window size question

Hello! I'm writing a small telnet client using Erlang and the gen_tcp library. I receive IAC WILL ECHO and IAC WILL SUPPRESS_GO_AHEAD which I respond to. Then I receive various text output from the server, and then this: resize: unknown character, exiting. I'm curious as to why I do... (1 Reply)
Discussion started by: Gustav
1 Replies

3. Shell Programming and Scripting

Telnet Expect script question

Hi all, I have written a small expect script which should spawn a telnet session login and execute some commands. #!/usr/bin/expect -f spawn telnet $env(IP) match_max 100000 expect "login:" send -- "******\n" expect -exact "Password:" send -- "****\n" expect "%" Now I have got... (2 Replies)
Discussion started by: stinkefisch
2 Replies

4. Solaris

Question about telnet?

Hi everyone. I am newb at solaris i have 2 question 1. i am finding a way to prevent separate users to telnet similar like /etc/ftpd/ftpusers in Solaris system I know a way to disable user ftp by force user shell=/bin/false 2. or any program can do a chroot telnet user like proftpd :D ... (5 Replies)
Discussion started by: tien86
5 Replies

5. Shell Programming and Scripting

Webpage to Telnet via Perl and Expect: Telnet problem?

Somewhat long story: I have a simple Perl CGI script that uses Expect to Telnet to a device and grab some data, and then spits it back to Perl for display on the Webpage. This works for many devices I've tried, but one device just fails, it keeps rejecting the password on this device, only... (1 Reply)
Discussion started by: jondo
1 Replies

6. UNIX for Dummies Questions & Answers

Telnet question

How do I get back to Unix prompt while telneting to a router w/out exit from the telnet session? Thanks (2 Replies)
Discussion started by: oppiz
2 Replies

7. HP-UX

question about telnet to HP unix 11

When using telnet connect to HP unix 10, it will get a pty/ttyxx terminal, but using telnet connect to HP unix 11, it will get a pts/tx terminal. I want to ask is, can I using telnet connect to HP unix 11 and get a pty/ttyxx terminal ?? :confused: thx a lot (3 Replies)
Discussion started by: zetadhell
3 Replies

8. Solaris

TELNET Question

Hello All, I have a question. I have two V480 systems that can telnet to other systems on our network, but lo cannot receive a telnet from other systems. I've check the usual .rhosts, env and several other files such as the telnetrc files with no luck. I've tried all avenues before issuing... (8 Replies)
Discussion started by: mr-synapse
8 Replies

9. UNIX for Dummies Questions & Answers

telnet question

Does anyone know a way to log into a telnet server with username and password all with one command? I have to do this remotely. I can do this with FTP with the following command under windows: ftp -s:c:\dir\test2.txt 10.0.0.207 The "-s:filename" option is just a list of commands that occurs... (2 Replies)
Discussion started by: ober5861
2 Replies

10. IP Networking

tcp timout

I am led to understand that there when a port is bound for a tcp connection...once that connection is closed there is a timeout period before that port can be reused ... and the software I am using shows that. How long is this timeout - what affects it and is there anyway to reuce the timeout? (5 Replies)
Discussion started by: peter.herlihy
5 Replies
Login or Register to Ask a Question