Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux General

Linux General Any questions that are not covered by other forums go here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-10-2008, 02:31 PM
Senior Member
 
Join Date: Jan 2007
Posts: 109
Hektor is on a distinguished road
Default Cron again....

I made some crontab jobs that look like this:

Code:
10 2 * * *      /script
10 3 * * Mon  /script
10 4 * 1 *      /script
Which says run the script every day at 2:10.
Every Monday at 3:10.
And on the first of the month at 4:10.

It doesn't work (and it turned out to be a script error) but I found these directories:

Code:
# /etc/cron.daily/
# /etc/cron.weekly/
# /etc/cron.monthly/
And the daily/weekly had scripts in them. I assume you place a script in these directories and it executes at the respected time (daily/weekly/month). Is this true? If so, why are they there instead of using the crontab? Which is better for me to use running scripts as root?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-13-2008, 02:32 PM
Tor Tor is offline
Senior Member
 
Join Date: Oct 2007
Posts: 390
Tor is on a distinguished road
Default

I think that those directories do the same as your crontab that you have setup... but.. I think there is suppose to be a crontab script that executes daily which goes through those directories and executes every script. I don't know for sure though cause I never used it.
Reply With Quote
Reply

Tags
cron, cron dirs, crontab

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exclude an hour in Cron? Pan Linux General 2 06-29-2008 07:59 AM
Creating Cron Job Hektor Linux General 1 01-15-2007 06:29 PM


All times are GMT. The time now is 05:43 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.