#1 (permalink)  
Old 11-03-2003, 01:27 AM
Registered User
 
Join Date: Mar 2002
Posts: 419
spaceman
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-24-2003, 07:13 AM
Registered User
 
Join Date: Oct 2003
Posts: 101
Ganga
This is a question I also need answer to, can somebody please reply and help us?

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-01-2004, 01:28 PM
Registered User
 
Join Date: Oct 2003
Posts: 101
Ganga
Please kindly reply.....

Too many questions go unanswered in this forum...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-01-2004, 07:28 PM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-01-2004, 08:05 PM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-01-2004, 08:06 PM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
Re: cPanel cron jobs or cron.daily , cron.hourly , etc.?

Quote:
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-01-2004, 08:16 PM
Registered User
 
Join Date: Oct 2003
Posts: 101
Ganga
Many thanks for the prompt answers!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:54 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc