title: Cron for job to run on first Sunday of the month
body: <p>I have a cron line for running  a command each first Sunday of the month, which looks like this:</p>
  
  <pre><code>0 19 1-7 * 0 command.sh
  
  
  Minutes=0
  Hours=19
  Day= 1st to 7th
  * = any month
  0 = first day of the week (Sunday)
  </code></pre>
  
  <p>However, I had the surprise command.sh has run last Sunday (16th of June). Can anyone explain why my cron line is mistaken?</p>
  
  <p>As an alternative, according to a <a href="https://en.wikipedia.org/wiki/Cron" rel="nofollow">wiki page</a>, it is possible to use the "#" character to: "allow you to specify constructs such as "the second Friday" of a given month" . Is there an example available as how to use this to fit "the first Sunday of a given month"? </p>