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 execution command

Discussion in 'General Discussion' started by kartheek999, Dec 14, 2007.

  1. kartheek999

    kartheek999 Registered

    Joined:
    Dec 14, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    what is a valid cron execution command?

    if i need to run a file in the cron jobs what should be the path to be set?

    the file is in /public_html/

    the version of cpanel is cPanel Pro 1.0 (RC1)
     
  2. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    You should specify the complete path. Assuming that you want to run a php scrip cron.php as cron and this script is present in public_html of the account. So you will setup cron as:

     
  3. kartheek999

    kartheek999 Registered

    Joined:
    Dec 14, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1

    it gives a error message by mail as

    /bin/sh: php/home/name/public_html/cronjob.php: No such file or directory

    when i give command as

    /home/name/public_html/cronjob.php

    it says acess denied
     
    #3 kartheek999, Dec 14, 2007
    Last edited: Dec 14, 2007
Loading...

Share This Page