create basic generator script for use with cron