Update crontab function.