#!/bin/bash

#This script would typically be invoked as a cron job or similar.

cd somedirectory
touch TIMESTAMP
getpage.py http://www.slowbutinterestingsite.com/ filenametosavebaseas.html
# Then remove old files after getting the new ones, if any changes occurred.
if [ TIMESTAMP -ot index.html ]; then
	for x in *; do
		[ TIMESTAMP -nt $x ] && rm $x
	done
fi
rm TIMESTAMP
