Cron Job

Asked by:
XtremeCookiez
Time:
2013-01-01 9:33 pm
Category:
Cpanel
Hits:
159
I want to use a cron job to run a php file every day. What command do I use to run the php file?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User

0

JacobN
2013-01-01 9:56 pm
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

You must login before you can post a comment about this answer.

Like this Question?

Support 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.