2

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?

hlovdal
  • 23,353
  • 10
  • 78
  • 148
George Welder
  • 2,950
  • 7
  • 31
  • 62

1 Answers1

5

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
Eric Duminil
  • 48,038
  • 8
  • 56
  • 100