summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-05-02 13:00:27 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-05-02 13:00:27 +0200
commit54df7fae1b17ab59cb616caca17a7a6b986a251d (patch)
tree705313185caa3b60524f76b0adddf67d14f2ea39
parent20abe65e17fbea99795af2d9d5015db3650abc31 (diff)
downloadw3watch-54df7fae1b17ab59cb616caca17a7a6b986a251d.tar.gz
w3watch-54df7fae1b17ab59cb616caca17a7a6b986a251d.tar.xz
Set sane timeout; continue if one site fails
-rwxr-xr-xw3watch7
1 files 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