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

...?

Well, you can only check for 0 vs. not-0 that way. It will work in this case, but there's no way to test for other exit codes.
_________________________
Bitt Faulk