Cron Job

Asked by:
XtremeCookiez / 5 Points
Time:
2013-01-02 1:33 am EST
Category:
Cpanel
Hits:
677
I want to use a cron job to run a php file every day. What command do I use to run the php file?

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by User

0

JacobN
Staff
3,713 Points
2013-01-02 1:56 am EST
Hello XtremeCookiez, and thanks for your question.

You would call PHP directly and then specify the location of the PHP script that you'd like to have your cron job run.

It would look something like this:

php -q /home/username/public_html/scriptName.php

For a more in-depth look at cron jobs please review our guide on how to run a cron job.

If you had any other question at all, please let us know.

- Jacob

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}