PDA

View Full Version : Set up a cron job


boelter
11-03-2007, 06:06 PM
I have made a php script to do what I want but I am un-sure how to set up cronjob to make it run at 4 am every day. anyone know of a good tatorial?

saosangmo
11-04-2007, 01:24 AM
Please search in Help Desk
http://helpdesk.bluehost.com/kb/index.php?mod_id=2&kb_keywords=cron

boelter
11-19-2007, 02:34 PM
I have done that but now I am running into a new problem. here is the error message I am getting.

/bin/sh: /home/myaccount/public_html/thedancedirectory/datedel.php: Permission denied

felgall
11-19-2007, 03:48 PM
Is your account name "myaccount"? If not then you need to substitute your correct account name into the path in its place.

boelter
11-19-2007, 04:03 PM
No, I replaced my account name with that just so it was not advertised on the forum.

silentcollision
11-21-2007, 08:05 PM
Try:

/usr/bin/php $HOME/public_html/path/to/file.php