Path: utzoo!mnetor!uunet!mcvax!unido!cosmo!jum From: jum@cosmo.UUCP (Uwe Mager) Newsgroups: comp.unix.questions Subject: Re: Cron Message-ID: <736@cosmo.UUCP> Date: 23 Feb 88 05:44:30 GMT References: <235014@<1988Jan17> <10800014@bradley> <712@uel.uel.co.uk> Reply-To: jum@cosmo.UUCP (Jens-Uwe Mager) Organization: CosmoNet Kommunikationssysteme GmbH, D-300 Hannover, West Germany Lines: 20 Summary: Makefile for crontab directory 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@focus.UUCP || jum@cosmo.UUCP