Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Mar 2002
    Posts
    442

    Default cPanel cron jobs or cron.daily , cron.hourly , etc.?

    Hi All,

    Just refreshing my cron job knowledge here...

    /etc/cron.hourly/
    /etc/cron.daily
    /etc/cron.weekly/
    /etc/cron.monthly/

    Question 1.

    I am _presuming_ that if I move a script into /etc/cron.hourly/ then (assuming the script is error free, has the right permissions, etc.) then it'll run every hour, and so on and so forth for the other directories. So this would be a good place to throw jobs that need to run hourly, daily, weekly, etc. but that I'm not bothered about _when_ they run - the hourlies might run at any time day or night, but at the same time every day or night - correct?

    Question 2.

    Using cPanel I can tell a script (anywhere on the server, irrespective of the directory it's in) to run at any interval I choose, and at the time of my choosing. So I'm thinking that if I want more precise control over a cron job, use cPanel and put the script in whatever directory I want. If I'm not fussed when it runs, then throw it in /etc/cron.daily or whichever interval is appropriate. Yes?

    Thanks for your feedback.
    • Web Design Perth .:. Itomic Business Website Solutions of Perth, Western Australia

  2. #2
    Member
    Join Date
    Oct 2003
    Posts
    103

    Default

    This is a question I also need answer to, can somebody please reply and help us?

    Thanks!

  3. #3
    Member
    Join Date
    Oct 2003
    Posts
    103

    Default

    Please kindly reply.....

    Too many questions go unanswered in this forum...

  4. #4
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    I'll let you know in an hour.

    I stuck a simple script to email me in the cron.hourly directory. If that's how it works, I'll get an email within an hour.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  5. #5
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    That's how it works. I just got an email from my script that I just stuck in the cron.hourly directory.

    Just stick a script in the appropriate directory, set it to executable, and it's ready to go.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  6. #6
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default Re: cPanel cron jobs or cron.daily , cron.hourly , etc.?

    Originally posted by spaceman
    Hi All,

    Just refreshing my cron job knowledge here...

    /etc/cron.hourly/
    /etc/cron.daily
    /etc/cron.weekly/
    /etc/cron.monthly/

    Question 1.

    I am _presuming_ that if I move a script into /etc/cron.hourly/ then (assuming the script is error free, has the right permissions, etc.) then it'll run every hour, and so on and so forth for the other directories. So this would be a good place to throw jobs that need to run hourly, daily, weekly, etc. but that I'm not bothered about _when_ they run - the hourlies might run at any time day or night, but at the same time every day or night - correct?

    Question 2.

    Using cPanel I can tell a script (anywhere on the server, irrespective of the directory it's in) to run at any interval I choose, and at the time of my choosing. So I'm thinking that if I want more precise control over a cron job, use cPanel and put the script in whatever directory I want. If I'm not fussed when it runs, then throw it in /etc/cron.daily or whichever interval is appropriate. Yes?

    Thanks for your feedback.
    Correct
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  7. #7
    Member
    Join Date
    Oct 2003
    Posts
    103

    Default

    Many thanks for the prompt answers!

Similar Threads & Tags
Similar threads

  1. Daily Error Email - Cron run-parts /etc/cron.daily
    By sm9 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-04-2010, 11:09 PM
  2. Cron <root@xxx> run-parts /etc/cron.hourly
    By mmarch in forum New User Questions
    Replies: 0
    Last Post: 04-01-2009, 12:45 AM
  3. Cron run-parts /etc/cron.daily
    By Nitro in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-26-2006, 11:31 AM
  4. /etc/cron.daily/chkformmailver.cron Can't Locate Error
    By devellion in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-27-2005, 09:58 AM
  5. Cron <@ls05> run-parts /etc/cron.daily
    By GeekPatrolMille in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-17-2004, 03:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube