0

When I run my script on Terminal like:

sh /Users/garychan/daybuild_ios.sh feature/sprint_111

It runs successfully.

When I set cron tab as follows:

0 9-21/4 * * * sh /Users/garychan/daybuild_ios.sh  feature/sprint_111

It cannot run at regular intervals of 4 hours from 0900 to 2100

Would you please tell us any other procedures when I wrongly setup this cron job ?

Raju yourPepe
  • 2,859
  • 15
  • 63
  • 131
  • Some good troubleshooting recommendations [here](https://stackoverflow.com/questions/22743548/cronjob-not-running/22744360#22744360). The first thing I'd do is capture output and errors by adding something like `>/tmp/cronjob.out 2>&1` to the entry, letting the job try to run, then looking at the output file to see what happened (see step 7 in the answer I linked). – Gordon Davisson Jul 21 '21 at 08:17

0 Answers0