schedule shell script mac

C++
env EDITOR=nano crontab -e
0  3  *  *  *  sh /path/to/your/file
-----
(format: min  hour  day_of_month  month  day_of_week  your_command)
Source

Also in C++: