diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-05-02 13:00:27 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-05-02 13:00:27 +0200 |
commit | 54df7fae1b17ab59cb616caca17a7a6b986a251d (patch) | |
tree | 705313185caa3b60524f76b0adddf67d14f2ea39 | |
parent | 20abe65e17fbea99795af2d9d5015db3650abc31 (diff) | |
download | w3watch-54df7fae1b17ab59cb616caca17a7a6b986a251d.tar.gz w3watch-54df7fae1b17ab59cb616caca17a7a6b986a251d.tar.xz |
Set sane timeout; continue if one site fails
-rwxr-xr-x | w3watch | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -6,6 +6,7 @@ CACHEDIR="${ROOTDIR}/cache" LOCKFILE="${ROOTDIR}/lock" CONFIGFILE="${ROOTDIR}/config" CONFIGSAMPLE='/usr/share/doc/w3watch/config.sample' +LYNX='/usr/bin/lynx --connect_timeout 10 --read_timeout 10 -stderr' if [ ! -d "${ROOTDIR}" ]; then install -D "${CONFIGSAMPLE}" "${CONFIGFILE}" @@ -62,13 +63,13 @@ check() { if echo "$url}" | grep -q '^@'; then url="$(echo "${url}" | cut -c 1 --complement -)" - dump=$(lynx -source "$url") + dump=$($LYNX -source "$url") else - dump=$(lynx -dump "$url") + dump=$($LYNX -dump "$url") fi if [ $? -ne 0 ]; then - quit 1 + continue fi if [ "${filter}" != "" ]; then |