[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dired copy marked files in xterm

From: Thierry Volpiatto
Subject: Re: dired copy marked files in xterm
Date: Sun, 24 Feb 2008 22:05:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Fabian Braennstroem <address@hidden> writes:

> Hi,
>     I would like to use the system 'cp' function in an xterm
>     to copy marked files in dired.
>     Right now, this small function works with the current
>     file:
> (defun tacopybackground(var1)
>     "Copy"
>   (interactive)
>        (call-process-shell-command (concat "xterm -e 'cp -R 
> "(dired-get-filename)" " (dired-dwim-target-directory) " &'"))
>        )
>     but obviously it needs some kind of loop or different
>     approach for marked files!?:
>        (call-process-shell-command (concat "xterm -e 'cp -R 
> "(dired-get-marked-files)" " (dired-dwim-target-directory) " &'"))
>     Does anyone have an idea or any suggestion? At the end I
>     would actually use a similar command to transfer several
>     large (up to 2-3GB) files to an remote machine using
>     scp. Tramp is unfortunately to slow...
> Greetings!
>  Fabian

You have to format "(dired-get-marked-files)" and
"(dired-dwim-target-directory)"??==> is it a function ?

But what wrong with "C" in dired ?
Mark your files and hit C ==> the path_where_you_want_to_copy_your_file RET

For copying big files to remote from emacs use sshfs
It's as fast as on your local system.

A + Thierry
Pub key:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]