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

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



Why are you so insistant that the '2>&1' is misplaced? It is perfectly
well placed for its purpose, which is to allow the processing of stderr
but not stdout by the pipeline.

Kevin

-----Original Message-----
From: rhelv5-list-bounces redhat com
[mailto:rhelv5-list-bounces redhat com] On Behalf Of Edward F. Brown
Sent: Saturday, December 29, 2007 9:29 AM
To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list
Subject: 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

_______________________________________________
rhelv5-list mailing list
rhelv5-list redhat com
https://www.redhat.com/mailman/listinfo/rhelv5-list


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