Bash (Scripting) - Create a crontab entry in bash script

by
Jeremy Canfield |
Updated: June 07 2021
| Bash (Scripting) articles
The following command can be run from the Teriminal or in a Bash shell script to add an entry to a users crontab.
(crontab -l 2>/dev/null; echo "* * * * * * /path/to/script") | crontab -
Did you find this article helpful?
If so, consider buying me a coffee over at