# /etc/cron.d/mapswitches: crontab to map network switches SCRIPTPATH=/path/to/script HTMLPATH=/path/to/document/root # run once an hour at some odd time 9 * * * * root perl $SCRIPTPATH/mapSwitches # run once daily to turn the YAML into a CSV for someone to read 12 12 * * * root perl $SCRIPTPATH/mapSwitchesCSV.pl > $HTMLPATH/mapswitches.tsv # run once a day to turn the YAML into an HTML page 13 12 * * * root perl $SCRIPTPATH/csv2html -c mapSwitches.css -t MapSwitches --h2 "Created mapswitches.tsv
`date`" $HTMLPATH/mapswitches.tsv > $HTMLPATH/mapswitches.html