Link to home
Start Free TrialLog in
Avatar of Ignatz
Ignatz

asked on

vi - Pick up where I left off...

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
Avatar of obkb
obkb

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".
Avatar of Ignatz

ASKER

I am currently killing the vi's, and then restoring the last saved version, but I would rather just take over tty, if possible.
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.
ASKER CERTIFIED SOLUTION
Avatar of rgmisra
rgmisra

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial