Hacker News new | past | comments | ask | show | jobs | submit login

My favorite is

    /etc/cron.monthly/
    /etc/cron.daily/
    /etc/cron.hourly/
    /etc/cron.weekly/
Super simple to use - no remembering the order of numbers. Only one job runs at a time (so you don't need to pick times that don't overlap) Of course, it doesn't handle every case. I don't know if all Linux's have it.



> Only one job runs at a time

At least on Debian, this is not true. If your hourly cronjobs take longer than an hour, it'll happily start a second instance of them in parallel.


Good point, I can see that happening. I was talking about all the, say, hourly scripts running serially.


It's true when using systemd-cron. It has built-in locking against duplicate execution.


Too bad this isn't directly supported in ~/.config/ it would make it very easy in combination with GNU stow or another dotfiles manager.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: