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

[rhelv5-list] Regular Expressions on RHEL 5



I have a strange situation where a script that works on RHEL 4 and Fedora 8 doesn't work with RHEL5.  The piece of the script that is failing is very simple, it's just a wget with grep.
wget -N --no-check-certificate https://myserver.net/file.txt  2>&1 >/dev/null  | egrep -q '[Nn]ot\ [retrieving|Found]' && exit

It doesn't seem to care about matching the grep results on RHEL5, it just always exits.  The script should just continue on if it doesn't get a hit on the grep statement. Anyone have any suggestions?

Thanks,
Ian



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