instead of "*", which may not match anything, and thus name something
that
doesn't exist, try using ".", which is the current directory.
This isn't
dos, and * has no special meaning to rsync. it is, rather, globbed by
your shell, being replaced by whatever it matches, or returned as a
literal "*".
Tim Conway
tim.conway@philips.com
303.682.4917
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, n9hmg on AIM
perl -e 'print pack(nnnnnnnnnnnn,
19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970),
".\n" '
"There are some who call me.... Tim?"
"Kapoor, Nishikant X" <Nishikant.X.Kapoor@xcelenergy.com>
Sent by: rsync-admin@lists.samba.org
12/17/2001 08:29 AM
To: rsync@lists.samba.org
cc: (bcc: Tim Conway/LMT/SC/PHILIPS)
Subject: return status of rsync
Classification:
Hello,
rsync returns zero if it is successful but a non-zero (2816) if it can
not find any file(s) to move across. Just curious if that should still
return zero ?
nkapoor> rsync -av * nk01::incoming
building file list ... * : No such file or directory
done
wrote 73 bytes read 337 bytes 820.00 bytes/sec
total size is 0 speedup is 0.00
I am trying to use this return status to determine if the rsync
operation was successful. But the source may or may not have any files
to send. Is there a better way to do this ?
Thanks
Nishi