tags:

views:

116

answers:

2

I have an MVC architecture and since I already have an action that would be extra useful if automatically called every hour or so, I wondered if there's a way to set it up as a cron job?

+3  A: 

You can use

curl http://example.com

Or if the language you're using has a CLI client like PHP you could just run the script like

php /var/www/example.com/index.php

Edit: For an MCV app it's probably easiest to use curl

nduplessis
+3  A: 

Don't know how periodic web page request is connected with mvc, but you can achieve it adding this to crontab (1 hour period):

0 0/1 * * * wget <web_page_url>
begray