Last night I work remotely via my modem on my workstation.
By accident I removed an important file. I knew that
the contents of this file was still in a buffer of an
xemacs running on the machine.
Is there a way to get the contents of a buffer without
having actually "graphically" access to the xemacs client?
BTW: The OS running on the computer is Linux 2.0.15.
Best wishes,
Steffen.
--
Steffen A. Jakob |"Sorgfaeltige Planung ist der
s...@gams.at | Schluessel zu einem sicheren und
+43 1 8176230-12 | zuegigen Reiseverlauf"
http://www.gams.at/~saj/ |(Odysseus)
S> Hi all!
S> Last night I work remotely via my modem on my workstation.
S> By accident I removed an important file. I knew that
S> the contents of this file was still in a buffer of an
S> xemacs running on the machine.
S> Is there a way to get the contents of a buffer without
S> having actually "graphically" access to the xemacs client?
If the important buffer is already saved to disk, use 'rcp'
(needs '~/.rhosts') or any terminal-programm (kermit /
seyon / minicom).
If not, the remote emacs has started it's server(*) and you
have graphically access to your local-host (X11 running),
probably this may work (untested):
- rlogin <remote-host>
- export DISPLAY="<local-host>:0.0"
- emacsclient(*) <some-file>
- C-x b <desired-buffer>
- C-x C-s <local-host:/path/to/file>
(*): actually Xemacs-equivalent
Has anybody tried this? I didn't ever use Xemacs, so i don't
know much about it's differences comparing to emacs
(emacsclient/gnusclient). And i'm not shure about the
synthax of the last command's filename.
Just an idea.
Bye,
-george
--
Sodd's Second Law:
Sooner or later, the worst possible set of circumstances is
bound to occur.