[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [rhelv5-list] Regular Expressions on RHEL 5



> 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]