*BSD News Article 14616


Return to BSD News archive

Xref: sserve comp.unix.questions:33266 comp.unix.programmer:9013 comp.unix.aix:21177 comp.unix.shell:8724 comp.unix.bsd:11832
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!nic.csu.net!130.150.102.20!oleg
Newsgroups: comp.unix.questions,comp.unix.programmer,comp.unix.aix,comp.unix.shell,comp.unix.bsd
Subject: Re: crontab having effect on several machines
Message-ID: <OLEG.93Apr16160449@gd.cs.CSUFresno.EDU>
From: oleg@gd.cs.CSUFresno.EDU (Oleg Kibirev)
Date: 16 Apr 93 16:04:49
References: <1993Apr13.205021.27788@sifon.cc.mcgill.ca><C5JD15.12A@crdnns.crd.ge.com><1qko
 75INNpsi@early-bird.think.com><VIXIE.93Apr15230704@cognition.pa.dec.com>
Organization: Computer Science Departement of California State University inFresno
Nntp-Posting-Host: gd.cs.csufresno.edu
In-reply-to: vixie@pa.dec.com's message of 15 Apr 93 23:07:04
Lines: 32

In article <VIXIE.93Apr15230704@cognition.pa.dec.com> vixie@pa.dec.com (Paul A Vixie) writes:

   Relay-Version: VMS News - V6.1B5 17/9/92 VAX/VMS V5.5-2; site nic.csu.net
   Path: nic.csu.net!usc!elroy.jpl.nasa.gov!decwrl!pa.dec.com!vixie
   Newsgroups: comp.unix.questions,comp.unix.programmer,comp.unix.aix,comp.unix.shell,comp.unix.bsd
   From: vixie@pa.dec.com (Paul A Vixie)
   Date: 15 Apr 93 23:07:04
   References: <1993Apr13.205021.27788@sifon.cc.mcgill.ca> <C5JD15.12A@crdnns.crd.ge.com><1qko75INNpsi@early-bird.think.com>
   Organization: DEC Network Systems Lab
   NNTP-Posting-Host: cognition.pa.dec.com
   Lines: 15
   Xref: filly comp.unix.questions:28010 comp.unix.programmer:10114 comp.unix.aix:22052 comp.unix.shell:9568 comp.unix.bsd:13458

   [barry margolin]
   > That wouldn't necessarily work.  On machines with SysV-style cron, changes
   > to crontab files won't be noticed automatically; the files are only read
   > when cron starts up, and you have to use the crontab(1) command to update
   > them.  So if you NFS mounted the crontabs directory and used crontab(1) on
   > one machine, it wouldn't update cron on the other machines.

   fortunately, though, there's a free version of cron that doesn't have those
   problems.  just the same, though, bill's answer is the best: even though it
   would sort-of-work, it's a bad idea to share crontabs with NFS.

So, what's wrong with changing all crontabs to run system-wide scripts:

26 4 * * *  /nfs/server/usr/adm/daily
26 2 * * 6  /nfs/server/usr/adm/weekly
26 6 * 7 *  /nfs/server/usr/adm/monthly

Oleg