> A simpler approach might be to
> tell wget to be quiet, and exit on any error:
>
> wget -q -N --no-check-certificate ${URL}/${FNAME} || exit

Sorry, this won't work for the OP, since 'Not Retrieving' because the file
isn't newer does not return an error.

But leaving out the misplaced error redirect, '2>&1', or even both
redirections (since it seems there IS no stdout from wget), in the
original script would still work.

-Ed

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to