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.

cronjob question

Discussion in 'General Discussion' started by yosiv24, Jan 22, 2007.

  1. yosiv24

    yosiv24 Registered

    Joined:
    Jan 22, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    hello

    i would like to know how to run a file with the extension "sh" from the cpanel's crontabs ?

    i mean that i have some file like "example.sh" in some directory under /home and i want to
    make a cronjob for this.

    thank you
     
  2. xerophyte

    xerophyte Well-Known Member

    Joined:
    Mar 16, 2003
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    please refer these links

    http://www.debian-administration.org/articles/56

    http://www.cpanel.net/docs/cpanel/ <== select the cron job

    basically you will use something like
    Code:
    0   2   *   *   1  /path/to/example.sh 

    Code:
    *     *     *     *     *  Command to be executed
    -     -     -     -     -
    |     |     |     |     |
    |     |     |     |     +----- Day of week (0-7)
    |     |     |     +------- Month (1 - 12)
    |     |     +--------- Day of month (1 - 31)
    |     +----------- Hour (0 - 23)
    +------------- Min (0 - 59)
     
Loading...

Share This Page