Reputation: 707
I was wondering how can i call the same file every x amount of time.I am used to ajax, but this is only for when a website has users, i am not expecting any users i am just trying to make some operations on some files every x amount of time, lets say every 20 minutes. thank you. Does anyone know of some methods that can help me with this?
Upvotes: 0
Views: 235
Reputation: 75686
Type this at the command line on your linux server:
crontab -e
add this to the file and save:
20 * * * * curl -s http://example.com
this will fetch that url every 20 minutes, the -s option to curl just silences any output.
Upvotes: 1
Reputation: 4478
This might help you, the link explains how to setup cron job in hostagator. The video in the link is well enough for you to go I guess
http://support.hostgator.com/articles/cpanel/how-do-i-create-and-delete-a-cron-job
Upvotes: 1