cron help

Discussion in 'HTML & Website Design' started by alexei_aus, Oct 3, 2007.

  1. #1
    Can anyone help me with setting up cron job for RSS2Blog version 3.

    I am using hostgator, and the command that I am using is:

    /usr/bin/php -q /home/jvenning/public_html/ rss3/post.php

    is there something wrong with the command>?

    P.S jvenning is the username

    is there a shorter command that may work?
     
    alexei_aus, Oct 3, 2007 IP
  2. Boulder

    Boulder Well-Known Member

    Messages:
    806
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    118
    #2
    Not positive but this path does not look correct?

    /home/jvenning/public_html/ rss3/post.php


    There is a space in the path for one! Also, does the file post.php live in a folder called _rss3?

    Boulder
     
    Boulder, Oct 3, 2007 IP
  3. alexei_aus

    alexei_aus Active Member

    Messages:
    626
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #3
    post.php lives in folder rss not _rss

    are you saying the path should be /home/jvenning/public_html/rss3/post.php

    ?

    no spaces
     
    alexei_aus, Oct 3, 2007 IP
  4. Boulder

    Boulder Well-Known Member

    Messages:
    806
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    118
    #4
    Right! yea no spaces... Also does the folder rss3 live inside public_html?


    Is the folder called rss or rss3 make sure to list it right name in cron entry?

    Boulder
     
    Boulder, Oct 3, 2007 IP
  5. alexei_aus

    alexei_aus Active Member

    Messages:
    626
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #5
    yes its inside public_html

    rss2blog folder is called rss3

    so the cron line should be /home/jvenning/public_html/rss3/post.php

    right?
     
    alexei_aus, Oct 3, 2007 IP
  6. Boulder

    Boulder Well-Known Member

    Messages:
    806
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    118
    #6
    Yes, it should be that if that is the name of the folder where post.php lives.. along with the beginning like -

    /usr/bin/php -q /home/jvenning/public_html/rss3/post.php

    If you go in cPanel and go to post.php and click on edit post.php, you will see the exact path to that file above the text editor.

    Boulder
     
    Boulder, Oct 3, 2007 IP