3

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
  • 26,565
  • 10
  • 94
  • 165
George Welder
  • 3,787
  • 11
  • 39
  • 75

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
  • 52,989
  • 9
  • 71
  • 124