Switch from Tumbleweed to Leap 15.2 now can only run bash commands in cron
by yoda63 from LinuxQuestions.org on (#5CAVY)
I have used openSuse for several years and about 4 years ago started using tumbleweed. Successfully ran several cron files including shutdown -h now. Recently switched to Leap 15.2 and the only cron files that run are using a bash script example: echo "Hello".
/var/log messages and mail indicate it is trying to run shutdown from /bin/sh. Cron config has no way of changing this. I have backup crontab and several other cleanup crons that are unusable but work fine using sudo or root (outside of the crontab on the CLI). Changing permissions doesn't work either.
HELP!
John
PS shutdown is linked to systemctl in /usr/sbin This isn't the original shutdown and uses halt. I use shutdown -k "my-message".


/var/log messages and mail indicate it is trying to run shutdown from /bin/sh. Cron config has no way of changing this. I have backup crontab and several other cleanup crons that are unusable but work fine using sudo or root (outside of the crontab on the CLI). Changing permissions doesn't work either.
HELP!
John
PS shutdown is linked to systemctl in /usr/sbin This isn't the original shutdown and uses halt. I use shutdown -k "my-message".