edb49
08-20-2002, 10:09 AM
Linux is driving me spare, I want a bit of code that does the following:
wget http://server/file.zip
if [wget succeeds]; then
echo Doing things
fi
I've tried:
if [ "$?" -eq 0 ]; then
but no luck...
wget http://server/file.zip
if [wget succeeds]; then
echo Doing things
fi
I've tried:
if [ "$?" -eq 0 ]; then
but no luck...
