Cron

Uwe Mager jum at cosmo.UUCP
Tue Feb 23 15:44:30 AEST 1988


I have found it convenient to keep all crontabs in a directory (say
/usr/adm/crontabs) and have make worry about updates:
------------------/usr/adm/crontabs/Makefile------------------------
DEST=/usr/spool/cron/crontabs
CTABS=$(DEST)/adm $(DEST)/comm $(DEST)/news $(DEST)/root \
	$(DEST)/sys $(DEST)/uucp

.IGNORE:
.PRECIOUS:	$(CTABS)

all:	$(CTABS)

$(CTABS): $$(@F)
	/bin/su $? -c crontab <$?
--------------------------------------------------------------------
The .IGNORE is needed for the funny return codes delivered by
crontab (at least on our machines).
-- 
Jens-Uwe Mager
jum at focus.UUCP || jum at cosmo.UUCP



More information about the Comp.unix.questions mailing list