making refresh command for cron