Not sure how you were editing, but if it was under Linux, there's a great little utility called screen (http://www.gnu.org/software/screen/). Just do a search on 'screen inux' under google and you'll find quite a few howtos as well.

It allows you to have multiple virtual console terminals and most importantly, if you do get disconnected, you can reconnect and resume where you left off. It's also good if you need to start a process (like compiling) and then return to it later.

Martin

David Cook (Canada) wrote:
Well it is 2:00AM and I just finished rebuilding my dialplan. (Was
editing, wifi went away, had a .*swp file, like an idiot got rid of the
wrong file).

1. Asterisk is still running with the dialplan in memory
2. asterisk -rx 'show dialplan' > my_cya_file
3. Edit my_cya_file. Not completely the right format, but write some
scripts and edit away. This file will also not have any comments, nor
constants defined. You will have to do this yourself. But you can save
it.

Yes, _now_ I have a backup copy ;-/

dbc.
--
David Cook (Canada)

Reply via email to