Trouble with -e ...

Paul Slootman paul+rsync at wurtel.net
Mon Mar 23 10:46:12 GMT 2009


On Sun 22 Mar 2009, Morgan Read wrote:

> But yet:
> [root at morgansoldmachine ~]# ssh -t rsync at morgansmachine sudo rsync -n
> --rsh=’/usr/bin/ssh -i /home/rsync/.ssh/id_dsa’ /etc
> root at morgansoldmachine:/media/bigdisk/morgansmachine/etc
> rsync: Failed to exec \#342\#200\#231/usr/bin/ssh: No such file or
> directory (2)

You're not using normal shell quotes...
If I cut and paste your --rsh line into this:
$ LANG=C cat -v
I get the following output:
--rsh=M-bM-^@M-^Y/usr/bin/ssh -i /home/rsync/.ssh/id_dsaM-bM-^@M-^Y /etc

Those escapes match exactly the \#342\#200\#231 shown in your error
message.

Use ' not ’ is the short version of this answer.


Paul


More information about the rsync mailing list