Create a crontab entry in bash script

Home > Search
  by

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 -

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments