updating cron job and script. logging added. need to run as root on ubuntu