Came across a interesting issue with running a script via a CRON job. I needed to find out what the path is to the PHP executable. I could make a educated guess and attempt to try /usr/bin/php, but I find a few ways this could be done.
- Use the System function and execute the ls command to find the binary
- Use SSH access and action the command whereis php