Solved

vi - Pick up where I left off...

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

Technology Partners: 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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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 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…

691 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