Let's say, I have a html page at http://example.pcriot.com/test.html
and I want to enable a Cron Job for every 10mins.
So what's the exact command that I should input in the Cron Job Command Field?
Let's say, I have a html page at http://example.pcriot.com/test.html
and I want to enable a Cron Job for every 10mins.
So what's the exact command that I should input in the Cron Job Command Field?
.html pages do not "run"
Are you saying that you want a cron job to just fetch the page via the Web once every 10 minutes ?
Last edited by descalzo; 08-25-2011 at 09:30 PM.
Nothing is always absolutely so.
Yeah! That's exactly what I want! Thanks for re-framing it![]()
1. that will append any output from the file to cron_log.txt ... all the html , or, any error messages. (note: replace igor with your cPanel username)Code:wget -O - http://example.x10.bz/test.html >> /home/igor/public_html/cron_log.txt 2>&1
2. that will show you it is running, or any error message. Once you know it works to your satisfaction, you should edit the command
3. replace the >> with a > if you just want just the last output. >> appends, so the file will get large. > replaces the contents, so it stays the size of the .html file.
4. remove >> and everything after it if you do not want any logging at all
5. This simulates someone visiting the page. If this is to "fool" advertisers, it probably won't work. IP address always the same and no cookies.
Nothing is always absolutely so.
Okey.. checking to see if its working as I want it to be.. and don't worry I'm not fooling any advertiser.. lol![]()
I'm trying to run this cron command is it proper?
Code:*/20 * * * * <em>{wget or similar command here}</em> http://get-free-downloads.pcriot.com/wp-content/plugins/wp-o-matic/cron.php?code=fff6e544
but you have not mentioned 10 minutes anywhere in the command