Re: Cron setup

1997-06-05 Thread stick
 
  
 I know the basics of cron and its crontab file, but have a couple of
  questions about the specifics of how Debian implements cron.  In other
  words, I've never seen cron divided with subdirs for daily, weekly,
  monthly, etc.  I get the point of doing things daily or weekly, but I
  wonder what about the specific time to do these events..
 
The biggest difference in how Debian handles things wrt the subdirectories
is the run-parts program.  Check out the manpage for some more information
on how it works.

Basically, scripts in any language can be run routinely (daily, weekly, monthly)
with only one crontab entry.  This allows packages to add scripts without
munging-up the crontab file.  The only downside is that the system looses
the ability to specify a time for a particular script to be run.

 The scripts in cron.* don't run magically.  They are run by cron that
 checks /etc/crontab.  Mine looks like:
 
 # /etc/crontab: system-wide crontab
 # Unlike any other crontab you don't have to run the `crontab'
 # command to install the new version when you edit this file.
 # This file also has a username field, that none of the other crontabs
 do.
 
 SHELL=/bin/sh
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
 # m h dom mon dow user  command
 42 6* * *   rootrun-parts /etc/cron.daily
 47 6* * 7   rootrun-parts /etc/cron.weekly
 52 61 * *   rootrun-parts /etc/cron.monthly
 30 10,15* * 1-5 root/etc/cron.coffee
 * * * * *   rootatrun -d -l 0.5
 
 
 This is pretty much an `ordinary' crontab file with an additional user
 field.  Normal users have the `ordinary' crontab files like they exist
 on other unices.

Personal preference: I like having the entries (and heading) separated by
tabs - it keeps thing nice an orderly.

Like this:

# min   hr  dom mon dow usercommand
32  23  *   *   *   rootrun-parts /etc/cron.daily
42  23  *   *   7   rootrun-parts /etc/cron.weekly
52  23  1   *   *   rootrun-parts /etc/cron.monthly

 
 I'm at a point to where I want to run a mirror process to fire off
  daily at about 1:00 am local.  Could someone outline the best way for me
  to implement this into Debian's cron setup?
 
 You can add your script to /etc/cron.daily and change the time these
 scripts are run from 6:42 am to 1:00 am, or you can add an extra item
 running your script.
 
If you want your mirror updated at a particular time, you'll need to add
an entry into /etc/crontab yourself.  If having it run *approximately* the
same time each day is close enough, then add you script to /etc/cdron.daily.


-- 
Chuck Stickelman, Owner E-Mail: [EMAIL PROTECTED]
Practical Network DesignVoice:  (419) 529-3841
9 Chambers Road FAX:(419) 529-3625
Mansfield, OH 44906-1302 USA


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Cron setup -- thanks/summary

1997-06-05 Thread Randy Edwards
   Just a quick note of thanks to all who replied about the Debian cron
setup.  I was thrilled with the response and it's greatly appreciated.

   Rather than summarize, I'll just say that if anyone has any questions
about the cron setup that Debian uses please do not hesitate to mail this
newly educated cron guru :-) and I'll happily help out as much as I can.

  | Debian GNU/__  o
 Regards, |   / / _  _  _  _  _ __  __
 .|  / /__  / / / \// //_// \ \/ /
 Randy| // /_/ /_/\/ /___/  /_/\_\
 ([EMAIL PROTECTED])  | ...because lockups are for convicts...


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Cron setup

1997-06-04 Thread Randy Edwards
   I know the basics of cron and its crontab file, but have a couple of
questions about the specifics of how Debian implements cron.  In other
words, I've never seen cron divided with subdirs for daily, weekly,
monthly, etc.  I get the point of doing things daily or weekly, but I
wonder what about the specific time to do these events..

   I'm at a point to where I want to run a mirror process to fire off
daily at about 1:00 am local.  Could someone outline the best way for me
to implement this into Debian's cron setup?

   If so, I'd greatly appreciate it; and, any additional info/tips you
could shed on Debian's cron implementation would convince me to nominate
you for sainthood. :-)

   Thanks in advance.

  | Debian GNU/__  o
 Regards, |   / / _  _  _  _  _ __  __
 .|  / /__  / / / \// //_// \ \/ /
 Randy| // /_/ /_/\/ /___/  /_/\_\
 ([EMAIL PROTECTED])  | ...because lockups are for convicts...


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Cron setup

1997-06-04 Thread E.L. Meijer \(Eric\)
 
I know the basics of cron and its crontab file, but have a couple of
 questions about the specifics of how Debian implements cron.  In other
 words, I've never seen cron divided with subdirs for daily, weekly,
 monthly, etc.  I get the point of doing things daily or weekly, but I
 wonder what about the specific time to do these events..

The scripts in cron.* don't run magically.  They are run by cron that
checks /etc/crontab.  Mine looks like:

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs
do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
42 6* * *   rootrun-parts /etc/cron.daily
47 6* * 7   rootrun-parts /etc/cron.weekly
52 61 * *   rootrun-parts /etc/cron.monthly
30 10,15* * 1-5 root/etc/cron.coffee
* * * * *   rootatrun -d -l 0.5


This is pretty much an `ordinary' crontab file with an additional user
field.  Normal users have the `ordinary' crontab files like they exist
on other unices.

I'm at a point to where I want to run a mirror process to fire off
 daily at about 1:00 am local.  Could someone outline the best way for me
 to implement this into Debian's cron setup?

You can add your script to /etc/cron.daily and change the time these
scripts are run from 6:42 am to 1:00 am, or you can add an extra item
running your script.

If so, I'd greatly appreciate it; and, any additional info/tips you
 could shed on Debian's cron implementation would convince me to nominate
 you for sainthood. :-)

Does that include a free aureole?

Eric Meijer

-- 
 E.L. Meijer ([EMAIL PROTECTED])  | tel. office +31 40 2472189
 Eindhoven Univ. of Technology | tel. lab.   +31 40 2475032
 Lab. for Catalysis and Inorg. Chem. (TAK) | tel. fax+31 40 2455054


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Cron setup

1997-06-04 Thread Rob Browning
E.L. Meijer \(Eric\) [EMAIL PROTECTED] writes:

 You can add your script to /etc/cron.daily and change the time these
 scripts are run from 6:42 am to 1:00 am, or you can add an extra item
 running your script.

Don't forget to use the crontab command if you edit the main file
rather than doing it directly.

-- 
Rob


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Cron setup

1997-06-04 Thread Nathan E Norman
On 4 Jun 1997, Rob Browning wrote:

:E.L. Meijer \(Eric\) [EMAIL PROTECTED] writes:
:
: You can add your script to /etc/cron.daily and change the time these
: scripts are run from 6:42 am to 1:00 am, or you can add an extra item
: running your script.
:
:Don't forget to use the crontab command if you edit the main file
:rather than doing it directly.

Huh?  The /etc/crontab file explicitly states that you *don't* need to
run crontab to edit it.  The /etc/crontab file has an extra user field
that the regular crontab files do not have ...

--
$ head /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs
do.
--

Did I misread or did you?

--
  Nathan Norman:Hostmaster CFNI:[EMAIL PROTECTED]
finger [EMAIL PROTECTED] for PGP public key and other stuff
Key fingerprint = CE 03 10 AF 32 81 18 58  9D 32 C2 AB 93 6D C4 72
--

:
:-- 
:Rob
:
:
:--
:TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
:[EMAIL PROTECTED] . 
:Trouble?  e-mail to [EMAIL PROTECTED] .
:


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Cron setup

1997-06-04 Thread Rob Browning
Nathan E Norman [EMAIL PROTECTED] writes:

 Huh?  The /etc/crontab file explicitly states that you *don't* need to
 run crontab to edit it.  The /etc/crontab file has an extra user field
 that the regular crontab files do not have ...

Absolutely right.  I wasn't paying close enough attention.  I was
thinking about user crontabs.

Sorry for the confusion
-- 
Rob


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .