Another question

David A. Sinck sinck@ugive.com
Wed, 14 Mar 2001 22:43:58 -0700


\_ SMTP quoth Kevin Buettner on 3/14/2001 16:53 as having spake thusly:
\_
\_ On Mar 14,  4:28pm, Jim wrote:
\_ 
\_ > If I access a location with Emacs, can I copy an entire directory 
\_ > including all files and all subdirectories and all files in the 
\_ > subdirectories from my machine to the remote machine?  Will it create a 
\_ > new directory on the remote machine?
\_ 
\_ I'm sure it can.  (Emacs can do anything/everything, right?)  I'm sure
\_ David will jump in a suitable Emacs answer.

*bampfh*  

YOU SUMMONED ME?

:-)


The two easiest ways I can think of:

M-x shell

then when it comes up, type 'scp -r my.files.* user@host:dir/dir/dir'

OR

M-x shell-command<return>scp -r my.files.* user@host:dir/dir/dir<return>

It's really the matter of using the right tool for the right job.  :-)

Also, dired mode may be able to do it; or may be able to do it in
conjunction with ange-ftp.  I'm still hoping for an ange-scp for fsf
emacs, but it hasn't materialized.  There's an Xemacs solution that
I've quoted before someplace...

Ahh; from my diary:
  ssh emacs remote edit: TRAMP by Kai (ref'd by varjag on #sawfish)
  good hits in RPM land and prolly rpmfinds

a quick google lands
http://ls6-www.cs.uni-dortmund.de/~grossjoh/emacs/tramp.html

MOOO!  It supports FSF now, or I was braindead when I made that
entry. (Nov 27, 2000).  Last update March 1, 2001.  Sa-weet...  excuse
me, I have some code slurping to do.

David

*hfpmab*