Solved

vi - Pick up where I left off...

Posted on 1998-07-07
4
326 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now