+ Reply to Thread
Results 1 to 7 of 7

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

  1. #1
    lord.xepherix56 is offline x10Hosting Member lord.xepherix56 is an unknown quantity at this point
    Join Date
    Aug 2011
    Posts
    11

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

    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?

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

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

    .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.

  3. #3
    lord.xepherix56 is offline x10Hosting Member lord.xepherix56 is an unknown quantity at this point
    Join Date
    Aug 2011
    Posts
    11

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

    Yeah! That's exactly what I want! Thanks for re-framing it

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

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

    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.
    Nothing is always absolutely so.

  5. #5
    sd643042 is offline x10Hosting Member sd643042 is an unknown quantity at this point
    Join Date
    Jan 2011
    Posts
    11

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

    Okey.. checking to see if its working as I want it to be.. and don't worry I'm not fooling any advertiser.. lol

  6. #6
    lord.xepherix56 is offline x10Hosting Member lord.xepherix56 is an unknown quantity at this point
    Join Date
    Aug 2011
    Posts
    11

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

    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

  7. #7
    sathuri3731 is offline x10Hosting Member sathuri3731 is an unknown quantity at this point
    Join Date
    Aug 2011
    Posts
    1

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

    but you have not mentioned 10 minutes anywhere in the command

+ Reply to Thread

Similar Threads

  1. Replies: 9
    Last Post: 06-25-2010, 12:47 AM
  2. set a cron job to run any program
    By sen01dj in forum Scripts & 3rd Party Apps
    Replies: 5
    Last Post: 06-22-2009, 10:02 PM
  3. Excellent Free CHM to HTML Conversion Program
    By chrisi in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 07-17-2008, 09:28 AM
  4. Replies: 1
    Last Post: 05-08-2008, 04:40 PM
  5. best html program
    By kulpin in forum Scripts & 3rd Party Apps
    Replies: 14
    Last Post: 11-03-2007, 03:01 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers