2008/12/8 Ehud Karni <[EMAIL PROTECTED]>: > I had an error, I did not notice that one of your variable includes ":". > Change my separator character to % in the 3rd solution like this: > > rsync="/usr/bin/rsync%-navHz%--delete%--delay-updates%--bwlimit=256%-e%ssh -i > /root/rsync.id" > local=/mnt/data/html/minicpan > copyto="test01:$local" # here you use : > IFS="%" # use only % (not space) to separate tokens > $rsync $local/ $copyto/ # you can use % or space for extra arguments > > Ehud.
Thanks. I'm not clear on what's the advantage of this approach over eval. Can you explain it to me? Cheers, --Amos ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
