Re: "-signs in rsync as well as in embedded ssh command

This is a discussion on Re: "-signs in rsync as well as in embedded ssh command within the Rsync forums, part of the Networking and Network Related category; > The trouble is that rsync parses the "-e" command into arguments, and it > just splits at ...


Go Back   Usenet Forums > Networking and Network Related > Rsync

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-22-2005
Manuel López-Ibáñez
 
Posts: n/a
Default Re: "-signs in rsync as well as in embedded ssh command

> The trouble is that rsync parses the "-e" command into arguments, and it
> just splits at every whitespace character without regard for the inner
> quotes. Maybe rsync should really be calling on a shell to parse the
> command.


Really? Does this mean that any option passed to ssh is interpreted by
rsync? For example,

rsync -e "ssh -p port -i mykey " myfile target:/remote/path/

Are -p and -i interpreted by ssh or by rsync?

Actually, I did the experiment and the -p command is taken by ssh and
not by rsync, so I understood you wrongly: what you said is that command
inside ssh cannot use shell metacharacters (", *, ?, etc). However, ...
tachan! Is it very complicated to use several -o before each option?

If you try:

rsync -e "ssh -o Port=22 -o ClearAllForwardings=yes -o ConnectTimeout=5
target" myfile :/remote/path/

It works perfectly!!

However, is there any possible scenario where the argument of -e should
be interpreted by a shell? Anyway, does the shell would understand the
nested quotes at all? If not, then even if the -e argument is
interpreted by a shell, it won't make any difference in this case, will it?

Perhaps, this might be considered to be added to rsync in the future.
Perhaps not!

Cheers,

Manuel.

(yes, you are so cool people, that I joined the list for fun! XDD)





______________________________________________
Renovamos el Correo Yahoo!
Nuevos servicios, más seguridad
http://correo.yahoo.es
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:43 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0