Current Size:
Chakra BreakPoints
base0px
sm480px
md768px
lg992px
xl1280px
2xl1536px
Current Height:Width
widthpx
heightpx

Subjects

Cron Jobs Cheatsheet

Date Created: 2024/02/29

Last Update: 2024/03/01

#shell #cheatsheet #cronjob #reference

A common gotcha is setting cronjobs as user vs root

Shell Script Cheatsheet for Macos

crontab -e # edit cron jobs
crontab -l # list all cron jobs

Tools and Reference

cronttab.guru

Debugging CronJobs

Dry run the script we are trying to run and ensure it works as expected.

ps ax | grep cron

Check Cronjobs work

sudo crontab -e
* * * * * /bin/echo "cron works" >> /tmp/file 2>>/tmp/error

More Notes

All Notes
HomeProjects

Links

Home Articles Notes Projects About Style Guide Site Credits

Contact

 [email protected]

Location

🌎 Earth