Solved

vi - Pick up where I left off...

Posted on 1998-07-07
4
330 Views
Last Modified: 2010-08-05
I am running Netterm under windows 95/NT, connection to an SCO 3.2v5 box.
When my windows machine(s) crashes, which happens all too often, I notice that my vi processes still exist.
Is there anyway that I can pick up where I left off with these sessions? Take over the PID?
Thank You
0
Comment
Question by:Ignatz
4 Comments
 

Expert Comment

by:obkb
ID: 2008530
There used to be a way to take over a tty but I can't remember the name of the program.
I do remember similar programs that had other purposes but also took over tty control,
they are advise, and screen. They might be able to switch tty's on you. But there is
an easier solution; simply kill the vi process, then from the same directory that you
issued the original vi command with, reissue the vi command with a "-r" flag ie.:
"vi -r filename".
0
 

Author Comment

by:Ignatz
ID: 2008531
I am currently killing the vi's, and then restoring the last saved version, but I would rather just take over tty, if possible.
0
 
LVL 3

Expert Comment

by:braveheart
ID: 2008532
vi -r filename  does not just restore the last saved version but picks up where the previous session left off, using files (usually of the format Ex00000nnnnn where nnnnn is the process number) left behind in the temporary directory.
0
 
LVL 1

Accepted Solution

by:
rgmisra earned 100 total points
ID: 2008533
This is a little more than what you asked for, but the screen
program will allow you to reconnect to a previous tty. Screen
keeps your tty alive even when your connection dies, and you
can reconnect to a previous screen session. Screen also supports
multiple terminals that you can switch between and run different
programs on.
You can get screen from
      ftp://prep.ai.mit.edu/pub/gnu/screen-3.7.4.tar.gz
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

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

679 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