#!/bin/sh # collective super-script that runs all the monthly scripts to generate the # static material for the overviews # wait until meter reading is done sleep 10 # main prog root gets overwritten by configure scr=MAINPROGROOT/scripts htr=HTDOCROOT/static # generate summary tables first $scr/make_monthly_summary.sh $scr/e_make_monthly_summary.sh # update images $scr/make_summary_image.pl $scr/e_make_summary_image.pl # make whole html page and snippet $scr/make_all_month_table.pl >$htr/allmonths.html $scr/monthlytable.pl last >$htr/lastmonth.html $scr/e_make_all_month_table.pl >$htr/e_allmonths.html $scr/e_monthlytable.pl last >$htr/e_lastmonth.html # send email on consumption adr=$(cat MAINPROGROOT/sms/addresses) # $scr/utilityreadoff.sh |mailx -A gmail -s "CQT utility meter reading (old format)" $adr $scr/new_utilityreadoff.sh |mailx -A gmail -s "CQT utility meter reading" $adr