From 54df7fae1b17ab59cb616caca17a7a6b986a251d Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 2 May 2010 13:00:27 +0200 Subject: Set sane timeout; continue if one site fails --- w3watch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/w3watch b/w3watch index c310253..88400ae 100755 --- a/w3watch +++ b/w3watch @@ -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 -- cgit v1.2.3-24-g4f1b