It is always a struggle configuring a cronjob to run certain scripts; there is always a mis configuration, a PATH, an environment variable that is different from when you use it in interactive mode, etc… Do you have any tricks to avoid or minimize those issues?

cc @selfhost@lemmy.ml

  • nitrolife@rekabu.ru
    link
    fedilink
    arrow-up
    6
    ·
    10 months ago

    You can use crontab -e from user. That set user environment to usual state. Or you can use systems timers instead crontab.

    Or you can set all environment variables inside cron file.