Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

process owner

Status
Not open for further replies.

mrn

MIS
Apr 27, 2001
3,993
GB
Hi

We had a network problem earlier and all connection to the server were lost; one of our developers was editing a file using edt and hadn't saved for an hour. I can see the edt process still running is there anyway to associate this with his new connection and let him save the changes?

Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
If you're talking about /usr/bin/edit, which is a hard link to /usr/bin/vi (or vice-versa), then you should be able to kill the process, then use 'edit -r <filename>' to recover an edited version of the file. I say 'an' because the recovery file is only updated each time a number (which I don't recall) of changes has been made. It should recover some of the developer's work, though.

To be sure it will work, check for the existence of /var/tmp/ExPID, where PID is the process id of the unattached edit session. If it's there and non-zero in size, you should be able to recover.



Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top