Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I actually disagree with simplicity. cron does weird things with the environment and it can be hard to correctly reproduce that environment when creating a job and debugging. Conversely, systemd timers are very easy to manually trigger and otherwise behave as a normal oneshot service.


I’m the developer of crontab.guru and Cronitor.

We have a free tool called CronitorCLI that includes a cron-like shell. You can run and test your scripts in an environment that matches how they will be run by cron itself.


Dude! you're my hero! This is why I like HN :)

Thank you for many years of reassuring me when I doubted my cron-expressions.


As somebody who has made cron jobs my career for the last 11 years, who left a good gig as an engineering director to build a bootstrapped business — that means a lot. It keeps me chugging. Thanks so much.


My approach to cron is to assume that you have an empty environment. Just set everything you will need.


Yes this is correct. Something most developers don’t know is that you can set env vars directly in your crontab file.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: