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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to reconnect to a broken telnet session?

Status
Not open for further replies.

jstrick

IS-IT--Management
Mar 22, 2000
2
US
Hi everyone I have a little problem, we run an ERP system called MFGPRO, it runs on AIX 5.2 I believe. We have an issue where sometimes peoples telnet sessions get dropped because of busy wan traffic, is there anyway that they can reconnect to the same telnet session that has the same process id?

I am a windows guy and I can do this with Citrix quite easy but I am not to sure with telnet. Seems locial to me that if you increase the telnet timeout to say something like 1 minute and then I am hoping there is another setting that allows the server to see the clients ip & username to be smart enough to realize that its session was just dropped and to put them back to where they left off.

If anyone knows of something like this it would be very helpfull. Right now we are dropping connections simetimes and then the users are locked out of some ERP menus because it still thinks the user is connected.

thanks everyone
 
use "screen" - it should solve your problem.

ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/screen/screen-3.9.10-2.aix4.3.ppc.rpm

you should install it on target host and use it everytime you login target host

so:
first time run "screen" and press any host

CTRL-a c - opening new session in surrent screen

CTRL-aa -swiching between screen windows
CTRL-an ----||--------------

CTRL-ad - detaching screen session

From command line "scrren -r" will open last screen session (if exist). It is created when you are exiting screen or connection is broken. If you have more then one freezed screen session then running "screen -r" you have to specify one.



r, m.



 
so in this case we just need to put the scrren -r into their logon scripts then?
 
-r may or may not work at any given instance, it will not connect to an existing session if it is still connected to another telnet session that hasn't yet timed out. I think it's -D -RR that "does whatever it takes" to forcibly disconnect the old session, and reconnect, or create a new session if one doesn't already exist.

Do get it though, screen is one of the best add-ons to hit unix of all time imao. Go through the switches and learn what all is available, since a lot of what you'll have to deal with on reconnecting will be covered there.
 
I think it is better to run "screen -r" or "screen" manually every time you login to the system...

it is really useful when I do some remote system tasks, like system update. in case of terminal connection crash the update process is not broken and I can resore crashed terminal session using "screen -r"...
 
Chapter1 is right - when your session crashed, then before running "screen -r" you have to run "screen -d"


r, m.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top