From owner-freebsd-questions Fri Oct 5 2:32:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id 0CC3C37B403 for ; Fri, 5 Oct 2001 02:32:14 -0700 (PDT) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id f959W4x00821; Fri, 5 Oct 2001 11:32:04 +0200 (CEST) (envelope-from ernst) Message-Id: <200110050932.f959W4x00821@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan Organization: EuroNet Internet B.V. To: cjclark@alum.mit.edu, "Crist J. Clark" , "Dan O'Connor" Subject: Re: Automatically cvsupdating?Crist, Date: Fri, 5 Oct 2001 11:31:59 +0200 X-Mailer: KMail [version 1.3] Cc: questions@FreeBSD.ORG References: <200110011017.f91AHRE02734@zaphod.euronet.nl> <047b01c14c73$92122fe0$059b140a@dan> <20011003210400.N8391@blossom.cjclark.org> In-Reply-To: <20011003210400.N8391@blossom.cjclark.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Your proposed solution sounds like the best I heard so far. Thanks! Ernst On Thursday 04 October 2001 06:04, Crist J. Clark wrote: > On Wed, Oct 03, 2001 at 06:23:50PM -0700, Dan O'Connor wrote: > > > If I would like to run cvsup every night or so, and have the output > > > sent to > > > > a > > > > > certain email address, how would I do that? > > > > This is how I do it every Friday night... > > > > In /etc/crontab: > > > > # Run cvsup every Friday night at 10:00 pm. > > 0 22 * * 5 root /usr/local/bin/cvsrun | sendmail root > > > > (Note: change the fifth field ("5") to "*" to get it to run every night. > > Change the sendmail target to whatever user you want the email sent to.) > > > > Then, create an executable file /usr/local/bin/cvsrun: > > > > echo "Subject: `hostname` weekly cvsup run" > > echo "Content-type: text/html" > > echo "" > > echo "" > > echo "
"
> >     /usr/local/bin/cvsup -g -L 2 /usr/src/stable-supfile
> >     echo "
" > > > > This should get you started. > > The /usr/src/Makefile has this type of functionality built in. See the > 'update' target. Put the appropriate settings for, > > # CVSup update flags. Edit SUPFILE settings to reflect whichever > distribution # file(s) you use on your site (see > /usr/share/examples/cvsup/README for more # information on CVSup and these > files). To use, do "make update" in /usr/src. # > #SUP_UPDATE= yes > # > #SUP= /usr/local/bin/cvsup > #SUPFLAGS= -g -L 2 > #SUPHOST= cvsup.uk.FreeBSD.org > #SUPFILE= /usr/share/examples/cvsup/stable-supfile > #PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile > #DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile > > In your /etc/make.conf and edit your supfiles accordingly. Add a line > like, > > # CVSup source code and ports once a week, do it during wee hours > Saturday 0 4 * * 6 cvs cd /usr/src; make > update >> /var/log/cvsup.log 2>&1 > > To your /etc/crontab. If you wish to send the output to a specfic > email address, pipe the output of the command to the appropriate > address rather than the redirects shown. -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message