I recently came across the at command on the command line, but I am wondering whether I can write a bash script that somehow enables me to tell the at command to run at 8 pm every day, or every monday, every week etc. basically at regular intervals. How is this possible?
Advertisement
Answer
at
is the wrong tool for this job.
You’re looking for cron
.
8 pm every day would be :
0 20 * * * /bin/execute/this/script.sh
8 pm every monday would be :
0 20 * * 1 /bin/execute/this/script.sh