I need to add a line to a user's crontab file. Normally, I would do this with
crontab -e, but I want to do it with a provisioning script.
Any clever methods?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
Coming back to this years later, if you find yourself in this sort of situation, you should take a very close look at configuration management tools. In particular, Ansible is a great option that fits into existing infrastructure easily, and has a nice cron module.