I have a PHP script which fetches new headlines from a website. I would like this PHP script to run at the interval of 11 minutes. I have installed crontab in my CentOS 6.5 machine.
All my PHP script is contained in /var/www/public/fetch_headlines.php and I am scheduling my crontab using :
*/5 * * * * /var/www/public/news_fetcher.sh
The problem is that to actually enter in news_fetcher.sh to call/run the
.shfile in yourwww? What's wrong with justphp /var/www/public/news_fetcher.sh?.shfile to public