Reputation: 345
I have a php file which runs a script to pull an image from a website and save it in a folder every minute (a webcam if you're interested). If I go to the url where the file sits, the page works and the image is saved. I am trying to set up a cron job in cpanel to do this automatically so I don't have to keep my browser open. The image below shows my settings but I am getting nothing. I have set it to send me an email everytime the job runs but I don't get that either. I am new to this so any help greatly appreciated.
Upvotes: 1
Views: 2543
Reputation: 1298
I can't tell much from the info you gave in , but I have similar type of issue, and what I found out was that I have included .php
files in my cron.php
and that those links(paths) were not correct for the cron job, but were correct when I opened in browser the php file.
and please check the link in the cpanel the command curl link if it's correct I use something like this
/usr/bin/php /var/www/vhosts/something.com/httpdocs/Cron.php
Upvotes: 2