I was editing an index.html page this morning on a remote Debian 3.1 server using vi, which I now know is nvi (I assumed it was vim, which I'm used to from other distros). I forgot to save the file and closed my SSH client.
I then received an e-mail as follows:
From: Nvi recovery program [mailto:firstname.lastname@example.org]
Sent: 13 July 2006 09:55
Subject: Nvi saved the file index.html
On Thu Jul 13 08:54:11 2006, the user rstaveley was editing a file named index.html on the machine myhost.mysubnet, when it was saved for recovery. You can recover most, if not all, of the changes to this file using the -r option to vi:
vi -r index.html
I'm absolutely delighted with this. I fixed my error straight away.
Here's my question:
The company I work for uses pico for on-line text editing, because most people are more enlightened than I am. Does the equivalent of the Nvi recovery program exist for pico too, including the mail alert?