added cron logic

make the script executed by crontab onece every 30 min