In the script I use to call up my ISP, I have
the following real life saver, as currently wwwoffle offers no built
in protection for when your carefully typed in POST encounters a down
server, etc.  One merely has to move the failed O and U pair back into
outgoing, and hope the server will be up next time you call.
( set -eu #WWWOFFLE failed POSTs recourse insurance:
  d=~jidanni/tmp/wwwoffle-outgoing-backup
  test -d $d
  find $d -type f -mtime +22 -exec mv {} /var/tmp \; #like rm
  cd ${wwwoffle_cache-/var/spool/wwwoffle}/outgoing
  set -- `wwwoffle-ls outgoing|awk '/POST/{m=$1;sub(/^O/,"U",$1);print m, $1}'`
  test "$*"
  cp -p $@ $d
)


Reply via email to