Originally Posted By: wfaulk

There's no way to embed the wget inside the if. Well, I suppose you could do this:
Code:
if [ `wget ....; echo $?` -eq 0 ]; then
but don't.

If you only need the return code in order to drive the "if", what's wrong with:
Code:
if wget .... ; then

...?

Peter