How do I access a remote site using a cron job?

Category: Website

InMotionFans
n/a Points
Asked:
2014-01-08 6:23 am EST

Hits: 74
I need a url to run every minute.It can't be run directly as a php file. Its based on MVC.
so the link : http://www.mydomain.com/controller/model
I have a shared hosting.
http://makeupstateofmind.com/

I want to know the command which should be placed?

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

You must login before you can submit an answer.

OTHER ANSWERS

0

JeffMa
Staff
9,162 Points
2014-01-08 8:34 am EST
If you are attempting to access a remote site, your cron would look something like this:

/usr/bin/curl --user-agent Mozilla/5.0 http://example.com/cron.php



For more information on running cron jobs, take a look at the following article:
How to run a cron job

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

Like 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!
Ask a Question

Need more Help?

Search

Ask the Community!

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

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!