#!/bin/sh # # Get current weather from KMSP Minneapolis St. Paul Airport # cd /home/account_name/prod MYDATE=`date` echo "$MYDATE" >> ./weather.log echo "start up" >> ./weather.log # curl -o KMSP_new.xml -s --url http://www.weather.gov/xml/current_obs/KMSP.xml # if [ -s ./KMSP_new.xml ] then /bin/rm -f ./KMSP.xml mv ./KMSP_new.xml ./KMSP.xml echo "new file KMSP" >> ./weather.log fi /bin/rm -f ./KMSP_new.xml ./wbug.sh echo "xfer to web server" >> ./weather.log cp ./KMSP.png ~/public_html/weather echo "done" >> ./weather.log exit