Cron Jobs on Linux - Comprehensive Guide with Examples (ittavern.com)
from learnbyexample@programming.dev to linux@lemmy.ml on 24 Sep 2024 13:49
https://programming.dev/post/19801093

#linux

threaded - newest

Lettuceeatlettuce@lemmy.ml on 24 Sep 2024 13:57 next collapse

For another useful resource, this site is really helpful for decoding what cronjobs are in plain language.

Cron Job Translator

gomp@lemmy.ml on 25 Sep 2024 07:52 collapse

I’d recommend learning/using systemd timers instead (well, if you are on inux and your distro uses systems)

ouch@lemmy.world on 25 Sep 2024 22:20 collapse

Is there any easy way to get mail of the runs like with cron?

gomp@lemmy.ml on 26 Sep 2024 08:34 collapse

You can use OnFailure in your .service file if you want some thing to happen when that specific service fails, but I don’t know if there’s a blanket way to tell systemd to notify via email when any failure happens (I wouldn’t mind a desktop notification… will investigate)

ouch@lemmy.world on 26 Sep 2024 09:30 collapse

When I checked a long time ago, there wasn’t.

And not only failures, often it’s useful to get mail for all executions.

I guess cron continues to have its place.