comparison wundersend @ 0:9dab44dcb331

Initial commit of Greg's code from http://www.lemis.com/grog/tmp/wh1080.tar.gz
author Daniel O'Connor <darius@dons.net.au>
date Tue, 09 Feb 2010 13:44:25 +1030
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:9dab44dcb331
1 #!/bin/sh
2 # $Id: wundersend,v 1.1 2009/11/22 23:33:06 grog Exp $
3 # Send a report to Wunderground and log if it fails
4 RESULTFILE=/var/tmp/wunderground.$$
5 fetch -o $RESULTFILE $1
6 RESULT=`cat $RESULTFILE`
7 if [ "$RESULT" != "success" ]; then
8 logger "wh1080: Can't send update to Wunderground: $RESULT"
9 fi
10 rm $RESULTFILE