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

  • Coelacanthus@lemmy.kde.social
    link
    fedilink
    arrow-up
    1
    ·
    10 months ago

    Always use absolute path. If you write some shell snippet which may be run in different environment, avoid use just command name for uncommon one.