But nothing happens. Even if I put a plain echo hello > /some/path.txt in the script it won’t get executed.
I checked /var/log/middlewared and don’t see any errors either.
When I manually run the midctl command line from the cron (adding -U and -P credentials) all I get is a decimal number on stdout, but no script execution.
How can I debug this and / or what could be wrong?
The most common problem I have seen with Cronjob failures, is that the executable PATH is not listed. Cronjobs ignore the user’s SHELL Profile, RC file or Login file and only use the OS supplied PATH and SHELL parameters.