Whether it's a modem a vpn that drops, or just accidentally closing a Windows emulator, sometimes you lose your connection. Users get kicked out, and that screws up their software.
The usual answer to that is to install "screen" because it will let you reconnect.
Unfortunately "screen" is a Swiss army knife, and it does way too much, including terminal emulation that you apparently can't avoid - it wants to be a vt100 terminal and that's all there is to it: the darn thing even watches your function keys and oh so helpfully translates them to vt100 sequences! Lousy idea if your software doesn't like vt100.
If it DOES like vt100, screen may be just what you want.
I found that "dislocate" is part of the "expect" package and it does just what I want: allows you to reconnect to a session. It doesn't do anything else, and that's good.
Of course if you DO want multiple windows and everything else screen offers, it's a great tool.
To use screen, or dislocate, you need to run them BEFORE you get disconnected.
screen yourprog dislocate yourprog
Then, when you want to reconnect:
screen -D -R dislocate -l
Binaries of both screen and expect are available from Skunkware for SCO and of course easily available for Linux..
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar