all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* dired operation - rsync?
@ 2011-06-21 12:32 Neal Becker
  2011-06-21 14:12 ` Eli Zaretskii
  2011-06-21 19:02 ` Michael Albinus
  0 siblings, 2 replies; 8+ messages in thread
From: Neal Becker @ 2011-06-21 12:32 UTC (permalink / raw
  To: help-gnu-emacs

I'd like to mark a bunch of files, but then, instead of Copy them, I want to 
rsync them.  Any ideas?  Is this worthy of an enhancement request for dired?




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dired operation - rsync?
  2011-06-21 12:32 dired operation - rsync? Neal Becker
@ 2011-06-21 14:12 ` Eli Zaretskii
  2011-06-21 15:54   ` Neal Becker
  2011-06-21 19:02 ` Michael Albinus
  1 sibling, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2011-06-21 14:12 UTC (permalink / raw
  To: help-gnu-emacs

> From: Neal Becker <ndbecker2@gmail.com>
> Followup-To: gmane.emacs.help
> Date: Tue, 21 Jun 2011 08:32:47 -0400
> 
> I'd like to mark a bunch of files, but then, instead of Copy them, I want to 
> rsync them.  Any ideas?  Is this worthy of an enhancement request for dired?

What's wrong with hitting `!' after marking those files, and then
typing the rsync command?



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dired operation - rsync?
  2011-06-21 14:12 ` Eli Zaretskii
@ 2011-06-21 15:54   ` Neal Becker
  2011-06-22 18:38     ` Eric Abrahamsen
  0 siblings, 1 reply; 8+ messages in thread
From: Neal Becker @ 2011-06-21 15:54 UTC (permalink / raw
  To: help-gnu-emacs

Eli Zaretskii wrote:

>> From: Neal Becker <ndbecker2@gmail.com>
>> Followup-To: gmane.emacs.help
>> Date: Tue, 21 Jun 2011 08:32:47 -0400
>> 
>> I'd like to mark a bunch of files, but then, instead of Copy them, I want to
>> rsync them.  Any ideas?  Is this worthy of an enhancement request for dired?
> 
> What's wrong with hitting `!' after marking those files, and then
> typing the rsync command?

Only that you have no control over how those filenames get substituted into the 
command.

rsync ${file} somepath...




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dired operation - rsync?
  2011-06-21 12:32 dired operation - rsync? Neal Becker
  2011-06-21 14:12 ` Eli Zaretskii
@ 2011-06-21 19:02 ` Michael Albinus
  2011-06-22 13:01   ` Neal Becker
  1 sibling, 1 reply; 8+ messages in thread
From: Michael Albinus @ 2011-06-21 19:02 UTC (permalink / raw
  To: Neal Becker; +Cc: help-gnu-emacs

Neal Becker <ndbecker2@gmail.com> writes:

> I'd like to mark a bunch of files, but then, instead of Copy them, I want to 
> rsync them.  Any ideas?  Is this worthy of an enhancement request for dired?

Have you tried Tramp's rsync method? It might suffice, if the target is
remote.

Best regards, Michael.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dired operation - rsync?
  2011-06-21 19:02 ` Michael Albinus
@ 2011-06-22 13:01   ` Neal Becker
  2011-06-23 13:16     ` Michael Albinus
  0 siblings, 1 reply; 8+ messages in thread
From: Neal Becker @ 2011-06-22 13:01 UTC (permalink / raw
  To: help-gnu-emacs

Michael Albinus wrote:

> Neal Becker <ndbecker2@gmail.com> writes:
> 
>> I'd like to mark a bunch of files, but then, instead of Copy them, I want to
>> rsync them.  Any ideas?  Is this worthy of an enhancement request for dired?
> 
> Have you tried Tramp's rsync method? It might suffice, if the target is
> remote.
> 
> Best regards, Michael.

Thanks!  Looks like what it can do what I want (although I still think it would 
be a good addition to dired, since nobody else will ever figure this out), but I 
get:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  tramp-method-out-of-band-p(["rsync" "nbecker" "nbecker5" "/home/nbecker/hn-
aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old"] 
nil)
  tramp-do-copy-or-rename-file(copy "/home/nbecker/hn-
aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old" 
"/rsync:nbecker@nbecker5:/home/nbecker/hn-
aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old" 
t t nil)
  tramp-handle-copy-file("/home/nbecker/hn-
aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old" 
"/rsync:nbecker@nbecker5:/home/nbecker/hn-
aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old" 
t t nil)
  apply(tramp-handle-copy-file ("/home/nbecker/hn-
aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old" 
"/rsync:nbecker@nbecker5:/home/nbecker/hn-
aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old" 
t t nil))
  tramp-sh-file-name-handler(copy-file "/home/nbecker/hn-
aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old" 
"/rsync:nbecker@nbecker5:/home/nbecker/hn-
aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old" 
t t nil)
  apply(tramp-sh-file-name-handler copy-file ("/home/nbecker/hn-
aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old" 
"/rsync:nbecker@nbecker5:/home/nbecker/hn-
aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old" 
t t nil))
  tramp-file-name-handler(copy-file "/home/nbecker/hn-
aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old" 
"/rsync:nbecker@nbecker5:/home/nbecker/hn-
aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old" 
t t nil)
  copy-file("/home/nbecker/hn-
aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old" 
"/rsync:nbecker@nbecker5:/home/nbecker/hn-
aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old" 
t t)
  byte-code("\b@;\203





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dired operation - rsync?
  2011-06-21 15:54   ` Neal Becker
@ 2011-06-22 18:38     ` Eric Abrahamsen
  2011-06-22 23:12       ` Neal Becker
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Abrahamsen @ 2011-06-22 18:38 UTC (permalink / raw
  To: help-gnu-emacs

On Tue, Jun 21 2011, Neal Becker wrote:

> Eli Zaretskii wrote:
>
>>> From: Neal Becker <ndbecker2@gmail.com>
>>> Followup-To: gmane.emacs.help
>>> Date: Tue, 21 Jun 2011 08:32:47 -0400
>>> 
>>> I'd like to mark a bunch of files, but then, instead of Copy them, I want to
>>> rsync them.  Any ideas?  Is this worthy of an enhancement request for dired?
>> 
>> What's wrong with hitting `!' after marking those files, and then
>> typing the rsync command?
>
> Only that you have no control over how those filenames get substituted into the 
> command.
>
> rsync ${file} somepath...

'*' and '?' should do what you want.

(dired-do-shell-command COMMAND &optional ARG FILE-LIST)

Run a shell command COMMAND on the marked files.
If no files are marked or a specific numeric prefix arg is given,
the next ARG files are used.  Just C-u means the current file.
The prompt mentions the file(s) or the marker, as appropriate.

If there is a `*' in COMMAND, surrounded by whitespace, this runs
COMMAND just once with the entire file list substituted there.

If there is no `*', but there is a `?' in COMMAND, surrounded by
whitespace, this runs COMMAND on each file individually with the
file name substituted for `?'.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dired operation - rsync?
  2011-06-22 18:38     ` Eric Abrahamsen
@ 2011-06-22 23:12       ` Neal Becker
  0 siblings, 0 replies; 8+ messages in thread
From: Neal Becker @ 2011-06-22 23:12 UTC (permalink / raw
  To: help-gnu-emacs

Eric Abrahamsen wrote:

...
> '*' and '?' should do what you want.
> 
> (dired-do-shell-command COMMAND &optional ARG FILE-LIST)
> 
> Run a shell command COMMAND on the marked files.
> If no files are marked or a specific numeric prefix arg is given,
> the next ARG files are used.  Just C-u means the current file.
> The prompt mentions the file(s) or the marker, as appropriate.
> 
> If there is a `*' in COMMAND, surrounded by whitespace, this runs
> COMMAND just once with the entire file list substituted there.
> 
> If there is no `*', but there is a `?' in COMMAND, surrounded by
> whitespace, this runs COMMAND on each file individually with the
> file name substituted for `?'.

Oh, cool!  Thanks!




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: dired operation - rsync?
  2011-06-22 13:01   ` Neal Becker
@ 2011-06-23 13:16     ` Michael Albinus
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Albinus @ 2011-06-23 13:16 UTC (permalink / raw
  To: Neal Becker; +Cc: help-gnu-emacs

Neal Becker <ndbecker2@gmail.com> writes:

> Thanks!  Looks like what it can do what I want (although I still think it would
> be a good addition to dired, since nobody else will ever figure this
> out), but I
> get:
>
> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
>   tramp-method-out-of-band-p(["rsync" "nbecker" "nbecker5" "/home/nbecker/hn-
> aci/test_8psk_perfect_sync_eq_decim.py.nbecker6.hughes.com.05fd701db5748833b44a40bdb15b9543.err.old"]
> nil)

Oops, there is an error, indeed (in case you sync a file which does not
exist, I believe). I've fixed it in Emacs 24.0.50.

Thanks for testing, and best regards, Michael.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-06-23 13:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-21 12:32 dired operation - rsync? Neal Becker
2011-06-21 14:12 ` Eli Zaretskii
2011-06-21 15:54   ` Neal Becker
2011-06-22 18:38     ` Eric Abrahamsen
2011-06-22 23:12       ` Neal Becker
2011-06-21 19:02 ` Michael Albinus
2011-06-22 13:01   ` Neal Becker
2011-06-23 13:16     ` Michael Albinus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.