Home

Mac Crontab

Open Vim to add your cronjobs.

crontab -e

Setting the format:

* * * * * command * - minute (0-59) * - hour (0-23) * - day of the month (1-31) * - month (1-12) * - day of the week (0-6, 0 is Sunday) command - command to execute (from left-to-right)

Then in Vim, you can write an expression like 0,15,30,45 * * * * cd ~/.scripts && ./work.sh.

To see active jobs, run crontab -l.

Repository

https://github.com/okeeffed/developer-notes-nextjs/content/crontab/mac-crontab

Sections


Related