unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Fabian Braennstroem <f.braennstroem@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: Re: dired copy marked files in xterm
Date: Mon, 25 Feb 2008 20:15:14 +0100	[thread overview]
Message-ID: <fpv43v$qte$2@tamarack.fernuni-hagen.de> (raw)
In-Reply-To: mailman.7867.1203886432.18990.help-gnu-emacs@gnu.org

Hi Thierry,
* Thierry Volpiatto <thierry.volpiatto@gmail.com> wrote:
> Fabian Braennstroem <f.braennstroem@gmx.de> 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 ?

I don't understand your question.

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

It is much slower, than the system's copy.

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

Thanks for your sshfs hint, but I am not sure yet, if it
works with our setup.

Greetings!
 Fabian


  parent reply	other threads:[~2008-02-25 19:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-24 19:26 dired copy marked files in xterm Fabian Braennstroem
2008-02-24 21:05 ` Thierry Volpiatto
2008-02-24 21:11 ` David Hansen
     [not found] ` <mailman.7870.1203888211.18990.help-gnu-emacs@gnu.org>
2008-02-25 19:10   ` Fabian Braennstroem
     [not found] ` <mailman.7867.1203886432.18990.help-gnu-emacs@gnu.org>
2008-02-25 19:15   ` Fabian Braennstroem [this message]
2008-02-26 10:22 ` Piet van Oostrum
2008-02-26 20:21   ` Fabian Braennstroem
2008-02-27 10:49     ` Piet van Oostrum
2008-03-03 19:44       ` Fabian Braennstroem

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='fpv43v$qte$2@tamarack.fernuni-hagen.de' \
    --to=f.braennstroem@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).