[HELP] How to program Cron Job to run a html page?

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
.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:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Code:
wget -O -  http://example.x10.bz/test.html >> /home/igor/public_html/cron_log.txt 2>&1

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)

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.
 

sd643042

New Member
Messages
11
Reaction score
0
Points
0
Okey.. checking to see if its working as I want it to be.. and don't worry I'm not fooling any advertiser.. lol :)
 

lord.xepherix56

New Member
Messages
11
Reaction score
0
Points
0
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
 
Top