The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cron job

Discussion in 'General Discussion' started by Stafford, Oct 27, 2003.

  1. Stafford

    Stafford Registered

    Joined:
    Oct 26, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Good day. I am trying to add a cron job, but it does not wont to add.

    I need to add such job:
    Code:
    /usr/local/bin/php -f /home/rlindexe/public_html/indexer.php 2>&1 1>/dev/null
    How can I add it using cpanel? (Cron Advanced mode is made as a default).

    cPanel.net Support Ticket Number: can not add a task
     
    #1 Stafford, Oct 27, 2003
    Last edited: Oct 27, 2003
  2. christi1

    christi1 Well-Known Member

    Joined:
    Oct 20, 2003
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Texas, USA
    Try this:

    15 * * * * /usr/bin/wget -q -O /dev/null -nd /home/rlindexe/public_html/indexer.php

    The 15 * * * * tells it to run at 15 minutes past the hour, every hour.
     
  3. Stafford

    Stafford Registered

    Joined:
    Oct 26, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    This line works now, I think it makes the same:
    /usr/bin/php -f /home/rlindexe/public_html/indexer.php
     
Loading...

Share This Page