#cheap wwwoffle page rewrite insurance, monitored pages too now
#run before connecting
set -exu
t=/tmp/wofftmp
cd ${wwwoffle_cache-/var/spool/wwwoffle}/outgoing
set -- `ls U*`
for i
do wwwoffle -O `cat $i` > $t && test -s $t && mv $t /tmp/${i/U/D} && cp $i /tmp
done
cd /tmp #monitored pages too:
lynx -width=222 -nolist -dump http://localhost:8080/index/monitor|
  awk '/N=0:0/{print $NF}'|xargs -r wget -x
#my /tmp is cleaned every three days on powerup

Reply via email to