Newish to Linux and slowly learning lol. I recently got a podcast downloader working through rss with castget, works great. The command to get new eps that haven’t been downloaded is castget -c.

Is there a way to automate this, so the command runs say every day at a set time?

  • davel [he/him]@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    9 hours ago

    If systemd is running, as it is on the great majority of distributions, then cron is running on top of it, as just another service. It’s not an either-or situation.

    • NoLemurs@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      8 hours ago

      It’s not. But the systemd timer has more robust logging and monitoring, and much more explicit and readable syntax.

      Once you get used to systemd timers, it’s really hard to see why you wouldn’t use them if your system has systemd. Unless writing crontabs by hand makes you feel like a hacker I guess. I’m not even being totally sarcastic about that - there is a fun retro feel to cron.

      • aksdb@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        7 hours ago

        I generally like their outcome, but hate the boilerplate. I think I need somewhere around 20 lines over two different files which would otherwise be a one-liner in a cron file.

        • NoLemurs@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          7 hours ago

          Yeah. Once you spend an afternoon debugging a failing cron job, the 5 minutes needed to write the boilerplate starts to feel pretty ok though.

          I’ve never had to spend an afternoon debugging a failing systemd timer in the years since I made the switch.