I can't get this cron to run.
being new to linux, I really don't know my way around.
Pi 3B+ Debian 9 Stretch PHP 7.0.33 Nginx 1.10.3
Pi has OpenMediaVault ( OMV ) running. Used OMV to create a sharedfolder 'www' which I can access and also map to my PC as a network folder. I have php scripts in the www folder and they execute correctly when accessed from the pC browser.
I want to automate 1 of the php scripts, which I assume is done using crontab.
Used Putty to login to the Pi as user root edit crontab with :
scrolled down and added :
*/1 * * * * /usr/bin/php /mnt/fs/sharedfolders/www/testcode/push2.php
I understand this will run every 1 minute - using that only as a test. I have tested the push2.php code from my browser and it executes as expected without errors.
When cron runs, I get an error report email to my PC ( I assume generated by OMV ) to say :
Could not open input file: /mnt/fs/sharedfolders/www/testcode/push2.php
What am I missing ?
ls -ld /mnt/fs/sharedfolders/www/testcode/push2.phpactually output anything?