>>>>> "Amos" == Amos Shapira <[EMAIL PROTECTED]> writes:
Amos> Hi, I've been doing shell programming for years but this got me
Amos> stomped (simplified version):
Amos> rsync="/usr/bin/rsync -navHz --delete --delay-updates
Amos> --bwlimit=256 -e 'ssh -i /root/rsync.id'"
Amos> local=/mnt/data/html/minicpan copyto="test01:$local" $rsync
Amos> $local/ $copyto/
I'd be very tempted to use a function and avoid the quoting wars.
function myrsync()
{
/usr/bin/rsync -e 'ssh -i /root/rsync.id' ... "$@"
}
Otherwise, try playing with bakcslasheds to quote the
rsync="/usr/bin/rsync ... -e 'ssh -i /root/rsync.id'"
localargs=....
eval $rsync $local
Peter C
--
Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au ERTOS within National ICT Australia
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html