View Single Post
Old 11-11-2004, 04:58 AM  
notjoe
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Toronto, Canada
Posts: 5,599
Quote:
Originally posted by Voodoo
5 * * * * wget --spider -q http://url_to_file.php
10 * * * * wget --spider -q http://url_to_file.php
* 1 * * * wget --spider -q http://url_to_file.php


Does this look about right if I'm running command line PHP?
That doesnt involve any PHP code at all...looks like you're spidering your URLs which end in a php script (makes no difference)

First line will run wget on the 5th minute of every hour. Second like will run on the 10th minute of every hour and the thrid will run every hour at the begining of the hour.

Hopefully this helps you out

PS: You may or may not need to put the full path to wget. You should be able to find the absolute path by running "which wget" without the quotes

Last edited by notjoe; 11-11-2004 at 04:59 AM..
notjoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote