If i write wget -q --tries=1 --timeout=10 --delete-after path/to/script.php in the cpanel cronjobs in order to run this script every hour
i receive a /bin/sh: /usr/bin/wget: Permission denied
in the email and the task is not performed
Basically this is a script to send newsletter to subscribers in small chunks of 50 per hour. The script runs from browser and is 644 in attributes.
How to make it run using cron tab. I have a cpanel
cron tab for php script
Moderator: General Moderators
Re: cron tab for php script
What about:
or
Code: Select all
wget -q --tries=1 --timeout=10 --delete-after http://localhost/script.phpCode: Select all
php -q path/to/script.phpThere are 10 types of people in this world, those who understand binary and those who don't