I don’t know what’s going on, but I can’t get crontab to work.
I have added everything correctly, told it what script to execute, but it’s not doing anything, it doesn’t even run the script.
Not to mention there are no log files for cron, even though cron is set up to have logging enabled.
Anyone have any thoguhts?
I’m having to get this script going because attempting it in libxl hook causes things to crash and not function. It locks the whole system up, even though the entire thing should work properly.
So libxl creates the file, then the cron job reads the file if it exists.
But crontab isn’t running the script.
I can run the script manually, and it works perfectly.
Another thing.
Cron jobs runs without any environment. There is rather short list of $PATH added at the beginning of /etc/crontab (only this file can use that) so if your script uses any app that’s not internal bash command then every such app should be invoked in script with full path.
You can also redirect every terminal output of script.sh to log
There are no traditional plain-text log files for crond. Like almost everything these days it’s logging its messages into the systemd journal, which is usually persisted on disk in binary database files at /var/log/journal/.
@KitsuneNoBaka and @barto have graciously pointed out to you how journalctl can be used to read the log messages.