Index of Section 1 Manual Pages
| Interix / SUA | elvrec.1 | Interix / SUA |
elvrec(1) elvrec(1)
elvrec
NAME
elvrec - Recover the modified version of a file after an Elvis editor
crash
SYNOPSIS
elvrec [-d tmpdir] lostfile...
DESCRIPTION
If you're editing a file when elvis(1) fails, the system crashes, or power
fails, the most recent version of your text will be preserved. The
preserved text is stored in a special directory; it does not overwrite
your text file automatically.
The elvrec(1) program searches the temporary directory specified by tmpdir
to locate the preserved version of the file specified by lostfile, and
writes it over the top of your text file. The recovered file will have
nearly all of your changes. If you do not specify the temporary directory,
elvrec first looks in the location specified by the TMP environment
variable. If the TMP environment variable is not defined, then evlrec
looks in the location specified by the TEMP environment variable if it is
defined. If neither TMP nor TEMP is defined, then elvred looks in /tmp if
that directory exists.
FILES
/usr/preserve/p*
The text that was preserved when elvis(1) died.
/usr/preserve/Index
A text file which lists the names of all preserved files, and the
names of the /usr/preserve/p* files which contain their preserved
text.
ENVIRONMENT VARIABLES
elvrec(1) makes use of the following environment variables.
TMP
TEMP
Directory for temporary files
BUGS
elvrec(1) is very picky about filenames. You must tell it to recover the
file using exactly the same pathname as when you were editing it. The
simplest way to do this is to go into the same directory that you were
editing, and invoke elvrec(1) with the same filename as elvis(1).
AUTHOR
Steve Kirkendall kirkenda@cs.pdx.edu
SEE ALSO
elvis(1)