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, help [moved]

Discussion in 'General Discussion' started by tabuladze, Jun 15, 2006.

  1. tabuladze

    tabuladze Member

    Joined:
    Oct 17, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I am trying to setup a cron job to run a file. What is the command I need to use? I need to run public_html/rssblogposter/post.php on one of our domains.

    Thanks for help in advance.

    T
     
  2. sitekeeper

    sitekeeper Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Troy, Mo
    You can use "lynx -dump http://www.somedomain.com/rssblogposter/post.php"
    There are other switches you can add.
     
  3. bmcgrail

    bmcgrail Well-Known Member

    Joined:
    Dec 8, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    php public_html/rssblogposter/post.php should work

    or

    /path-to-php/php /home/user/public_html/rssblogposter/post.php
     
  4. tabuladze

    tabuladze Member

    Joined:
    Oct 17, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    hmm, thanks guys, but

    none of these above mentioned ones seem to work. What could be the problem?

    Anyone?
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You could try via cPanel. In cron manager add something like this;


    PHP:
    php --/home/user/public_html/rssblogposter/post.php /home/user/public_html/rssblogpostercron 0 10
    cron job cPanel The top link even has pictures. :)
     
Loading...

Share This Page