Automate running a script using crontab on macOS

Herman Li
Mac O’Clock
Published in
3 min readApr 9, 2020

Photo by Henan Li

What is cron

The cron is a time-based job scheduler in Unix-like computer operating systems. It allows the user to schedule time to run tasks, so you can automate things like backups, create logs, health checks, etc.

Before config the crontab file

Operation not permitted