Re: rsyncing images
On Mon, 18 Sep 2000, Hugo van der Merwe wrote:
> > I just thought of a different strategy for your next pseudo-image. You can
> > split(1) the .list file in some 10 parts, and make (partial) pseudo-images for
> > each of them.
>
> I split it into 4 parts... got the first three "pseudo" parts, but
> cannot d/l the last part. The script doesn't work for http, btw, I get
> an error message related to "-ne" - maybe someone should check if they
Someone else just sent me this today, it might help in your case (but I don't
know what exactly is going wrong):
--- make-pseudo-image~ Mon Sep 18 15:55:40 2000
+++ make-pseudo-image Mon Sep 18 15:59:43 2000
@@ -285,7 +285,7 @@
# If error in Wget, file exists with length 0. Delete it.
if [ $GetMethod -eq 1 ] ; then
ExitStatus=`cat "$FileReadyFile.$i"`
- if [ $ExitStatus -ne 0 ] ; then
+ if [ "${ExitStatus:-1}" -ne 0 ] ; then
rm -f "$DownlFile.$i" 2> /dev/null
fi
fi
[...]
> > If not, try to compare them at the byte level by od'ing both versions.
>
> I suppose `cmp` should do the trick? Possibly even "diff"?
With both versions converted to hex/.. by od(1), yes. With the `raw' files,
cmp and diff will just say "binary files differ", and not show what exactly is
wrong. (Yeah, you can force it to ascii mode, but you won't get any wiser
then ;-)
Regards,
Anne Bezemer
Reply to: