summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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