cron job file with error save