Results 1 to 4 of 4

Thread: Cron job

  1. #1
    mycolumbus is offline Registered User
    Join Date
    Sep 2005
    Posts
    82

    Default Cron job

    Part of INDEXU is setting up a Cron job to update the sitemap on a regular basis. The instruction given in the readme file is to use the following command:

    GET http://www.mydomain.com/INDEXU/sitemap.php > /dev/null

    However, the GET command isn't supported by my server. Is it ok to just leave out the GET command? Also, what does /dev/null do?

    Thank you.

  2. #2
    ezykiwi is offline Active Member
    Join Date
    May 2004
    Location
    New Zealand
    Posts
    600

    Default

    Howdy,
    Most webhosts Ive been with often allow it, have you asked them specifically?

    As a backup plan, you could always set up a task on your computer to do it... say every day or whenever you want.... sure... its not as easy as on the server, but a back up plan none the less.

  3. #3
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    You can use php command line interface
    Code:
    php /home/your_account/www/indexu/sitemap.php
    Instead of the http address, you should use the full absolute path of the script.
    www.nicecoder.com
    www.dodyrw.com

  4. #4
    mycolumbus is offline Registered User
    Join Date
    Sep 2005
    Posts
    82

    Default

    Excellent. Works perfectly. Thank you very much.

Similar Threads

  1. cron job check url
    By lexpression in forum v5.x
    Replies: 0
    Last Post: 04-01-2006, 06:49 PM
  2. indexu maintenance script in cron
    By persut in forum v5.x
    Replies: 1
    Last Post: 01-17-2006, 02:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •