1

I used to run a script every week, but now I need to run it twice in every month.

My current commands are:

30 5 * * 1 "command"

Now I want to run my "command" every 1st and 15th of every month. I do not know what values to put in the third option, the days option.

leirbag
  • 73
  • 1
  • 3
  • 8

1 Answers1

11

I don't know if you can do it in one line so here in two lines :

  • 0 5 1 * * "commande" (1st of every month at 5 am)
  • 0 5 15 * * "commande" (15th of every month at 5 am)

Edit yes you can as pointed by mbieren:

0 5 1,15 * * "commande"

m.nachury
  • 972
  • 8
  • 23