this post was submitted on 18 Sep 2023
7 points (100.0% liked)
Linux
2380 readers
3 users here now
Shit, just linux.
Use this community for anything related to linux for now, if it gets too huge maybe there will be some sort of meme/gaming/shitpost spinoff. Currently though… go nuts
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Errors while running cron jobs often generate "mail" whether you've set it up or not.
You can likely check your mail by just running the
mail
command.Also, in your crontab, add
>> /tmp/cron.log
after your script, at least you'll see whatever logs get generated from that.Most likely though, the script works when ran manually because it uses your user's env variables, such as
PATH
.I usually just use absolute paths for everything when using cron and this takes care of the vast majority of my issues.