php - Setting up the crontab on amazon ec2 cloud (Linux server) -
i need run php file on every 2 hours, using command
* */2 * * * /usr/bin/php /var/www/html/sports/webservices/rss-insert.php
i using
* */2 * * * php /var/www/html/sports/webservices/rss-insert.php
but both not working. can me.
thanks
the crontab have made run every minute of every second hour rather every 2 hours.
in order run every 2 hours need this:
5 */2 * * * /usr/bin/php /var/www/html/sports/webservices/rss-insert.php
which run 5 minutes after every second hour e.g 2:05, 4:05...
this assuming script able run. try running command portion cron hand @ command line , make sure want.
Comments
Post a Comment