Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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:
    306
    Location:
    Troy, Mo
    You can use "lynx -dump http://www.somedomain.com/rssblogposter/post.php"
    There are other switches you can add.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. bmcgrail

    bmcgrail Well-Known Member

    Joined:
    Dec 8, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    156
    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:
    151
    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:
    16,170
    Likes Received:
    370
    Trophy Points:
    583
    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. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice