Solved

How do I remove the timeout from a telnet session into my solaris box?

Posted on 1998-12-30
8
715 Views
Last Modified: 2013-12-16
When I telnet into my solaris box, if I just leave the telnet session idle for a while, it will disconnect. How can I remove that timeout? It takes too much time to reconnect, and I have to administer the server all day long. I think it's something on the solaris box, but it might be something else, I don't know.
0
Comment
Question by:taotree
8 Comments
 
LVL 7

Expert Comment

by:HalldorG
ID: 1812610
Depends on your shell, check the manpage for the shell you
are using
0
 

Author Comment

by:taotree
ID: 1812611
I just searched through the man page on csh and it doesn't talk anything about timeout. I thought it would be something with either ttymon or login, or getty, or something like that having a timeout, but I can't seem to figure out how to change it.
0
 
LVL 84

Expert Comment

by:ozo
ID: 1812612
how do you telnet in?
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:taotree
ID: 1812613
I am running linux on my workstation and I collocate a Solaris 2.51 box at an ISP accessible over the Internet. I just run:
telnet domain.name
to telnet in to the server. Currently my connection to the Internet is a DSL line--it would time out whether it was via modem dialup to the internet or the DSL line I just got in.
0
 
LVL 7

Expert Comment

by:HalldorG
ID: 1812614
csh has parameter called Autologout set it to 0 and it will
not log you out.  The default value is 60 secs
0
 

Author Comment

by:taotree
ID: 1812615
Okay... I tried doing:
set Autologout=0
set autologout=0
setenv AUTOLOGOUT 0

It still didn't work. It still timed out. Any other ideas?
0
 
LVL 1

Accepted Solution

by:
forrestc earned 250 total points
ID: 1812616
Maybe the best way to approach this is to have you figure out what is getting set.  Type the following commands:

   set
   setenv

Each should (depending on your shell) give you a list of the environment variables which are set.

If you find an appropriate value, you can type:

   unset <value>

or, more specifically:

   unset autologout

If this doesn't work, let us know what shell you are using.   If you're not sure, type the following command:

   egrep '^yourusername:' /etc/passwd

You should get a line like:

forrestc:x:119:40:Forrest W. Christian:/home/forrestc:/bin/tcsh

The /bin/tcsh in this example is my shell.

0
 

Author Comment

by:taotree
ID: 1812617
Thank you very much for your help. I already mentioned I think that I was using the tcsh shell on Solaris. We have since, though, moved to Linux and there doesn't seem to be an auto time out now on the shells (bash) so I no longer need to get it figured out.

Thanks anyway!
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question