I am modifying a bash script of mine to issue an rsync to a remote host with a non-standard ssh port.
Unfortunately, no combination of "bashisms" seems to make it work properly. Code snippet: ... RSYNC_OPTIONS="-aH --delete --numeric-ids -e \'ssh -p 2292\'" RSYNC="ionice -c3 rsync $RSYNC_OPTIONS" $SOURCE=/some/dir [EMAIL PROTECTED]:/some/dir $RSYNC --progress "$SOURCE" "$DST" ... I've tried multiple means of achieving the same goal, but I always get the following error: Missing trailing-' in remote-shell command. rsync error: syntax or usage error (code 1) at main.c(364) [sender=3.0.0] If I paste the command directly into a command line, the command works properly. The issue was discussed here as well, but I don't believe a true solution was found: http://ubuntuforums.org/showthread.php?s=37eab16339f084c49ee03d56a48ddc32&t=721735 I've also tried taking the advice mentioned here and using an array instead of a variable, but to no avail: http://wooledge.org:8000/BashFAQ/050 Any advice, has anyone accomplished this? Sterling Windmill Systems and Technology Phone: 586-752-9671 Ext 161 Fax: 586-752-6589 www.custdata.com CONFIDENTIALITY NOTICE: This email contains information from the sender that may be CONFIDENTIAL, LEGALLY PRIVILEGED, PROPRIETARY or otherwise protected from disclosure. This email is intended for use only by the person or entity to whom it is addressed. If you are not the intended recipient, any use, disclosure, copying, distribution, printing, or any action taken in reliance on the contents of this email, is strictly prohibited. If you received this email in error, please contact the sending party by replying in an email to the sender, delete the email from your computer system and shred any paper copies of the email you printed.
<<LOGO.gif>>
-- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html