This might seem like just another basic cron question, but I cannot figure this one out:
@hourly "/usr/bin/php /usr/local/bin/notify.sh"
I migrated a bunch of stuff from one server to another and was able to get most things operating smoothly after some work, and now I'm putting out the fires.
I'm getting this email every hour, when the following cron job is supposed to run:
/bin/sh: 1: /usr/bin/php /usr/local/bin/notify.sh: not found
Typically, not found is caused by PATH not being there (an issue with cron jobs), but I am providing the full path for both PHP and the script. The script runs as root, and interactively, I can run the script.
The script has
755 permissions, just to be safe (anyone can read or execute), so the permissions are not the issue.
I can manually run the script and the script that it calls so I have no idea where this "Not found" is coming from.
Nothing suspicious in the cron log, other than this ran.
This worked properly on the old server.
Is there some other factor likely in play here, or how might I try to trace the cause of this issue?