Father of two, husband, gamer, lover of free software, and willing teacher.

Creator of Fireside Fedi Show: https://video.firesidefedi.live/@show

Chief Executive Officer BT Free: https://btfree.org/

  • 0 Posts
  • 22 Comments
Joined 9 months ago
cake
Cake day: March 16th, 2025

help-circle





  • ozoned@piefed.socialtoLinux@lemmy.mlCrontab problems... 😤 [solved]
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    4 months ago

    This is the answer. Everyone assumes your user Crontab works just like you. It doesn’t. You have to be explicit as possible, because it’s basically like another person attempting to run your stuff, but not having any of your environment variables.

    So you’re telling it to CD, but calling the script name then tells it to look in it’s path, which it won’t have that. T

    he ./ says ‘run from right where I am right now’ while ‘<scriptname>’ says run an executable where ever it is which then immediately checks $PATH, bit not local.

    So ‘./<script name>’ says run my script and it’s right HERE in the place you’re in right now.