天天看點

shell 判斷 404

    wget -q -t 3 -O ${TMPFILE} ${URL}

    if [ ! -s ${TMPFILE} ];then

        echo ${URL} > $TMPOFFLINEFILE ;

    fi