Hi Can anyone help me with cronjob plz! Assume that I want to run a script called wakeup.php in public_html/folder1/folder2/wakeup.php What is the command to execute this for every hour? Thanks
For a PHP script every 1 Hour would be something like this: 0 * * * * /usr/bin/php $home/public_html/folder1/folder2/wakeup.php
You could also just use curl and ping the page through your site..Its usually under /usr/bin (check w/ your host)... /usr/bin/curl mysite.com/ping.php (you need to add the http:slashslash as well - the forums is blocking me from adding that...)
LOL ... Thanks Guaffapint So, you mean is /usr/bin/curl http://mysite.com/ping.php ? Sorry, I know nothing much about Unix
Correct - with the appropriate timing setup as listed by the poster above (if you're doing it through cPanel, it will walk you through the timing piece).