Java Mailing List Archive

http://www.redhatconfig.com/

Home » Red Hat Enterprise Linux 5 »

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

Collins, Kevin [MindWorks]

2007-12-31

Replies:

Author LoginPost Reply
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@(protected)
[mailto:rhelv5-list-bounces@(protected)
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@(protected)
https://www.redhat.com/mailman/listinfo/rhelv5-list

_______________________________________________
rhelv5-list mailing list
rhelv5-list@(protected)
https://www.redhat.com/mailman/listinfo/rhelv5-list
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.