Solved

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

Posted on 1998-12-30
8
719 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

739 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