I've got a cron job which needs to run with elevated permissions on a PS, and I've added a line (using a PS Admin User account) to the root crontab using:
sudo crontab -e
The crontab is something like this:
@hourly sh /home/me/myscript.sh >> /tmp/myscript_cron.log 2>&1
However, the script does not seem to run, and I can't find any trace of an error in the log, or by running:
cat /var/log/syslog | grep cron
It looks like the cron isn't being run, and I have no idea why. Can anyone see what I might be doing wrong?
(In my case, myscript.sh needs to be run using elevated permissions as it's rebuilding a Sphinx search index. The same script runs fine outside of cron.)