cronjob problems

Celion

Verified User
Joined
Feb 13, 2006
Messages
5
Hey all,

I have a question:

I want a file to be run every 15 minutes, so i wanted to set up a cronjob. I just login as the user its for:

/home/user/public_html/dir/runthisfile.php

/home/user/

Here user is ofcourse the username. This is already given when going to cron. As for time i used the following settings:

Minute */15
Hour *
Day of Month *
Month *
Day of Week *
Command: /home/user/public_html/dir/runthisfile.php

Is this correct? And if not what should be adjusted? I hope someone can help me out here, thanks in advance!
 
no you should link to the default PHP dir. hold on I'll look it up

edit
wow I'm fast.

here is an example:

usr/local/bin/php /home/youruser/domains/yourdomain/public_html/yourdir

of course you can adjust the path. You could go up one leven too, so at the same depth as public_html, so no one can access it through the web.
 
Last edited:
Back
Top