apache - How to properly require a cron job once per hour? -


i looking command execute php script point once per hour. tried searching myself articles read seemed old , code didn't work.

do have directory called /etc/cron.hourly? if so, create new file inside folder, containing this:

#!/bin/sh /path/to/php /path/to/your/script.php 

then make file executable.


Comments

Popular posts from this blog

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -

php - Prepared Statement Inner Join Cannot Pass Parameter by Reference -

c# - Value cannot be null or empty.\r\nParameter name: name -