From owner-freebsd-questions Wed Oct 3 18:26:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mostgraveconcern.com (mostgraveconcern.com [216.82.145.240]) by hub.freebsd.org (Postfix) with ESMTP id F154237B406 for ; Wed, 3 Oct 2001 18:26:22 -0700 (PDT) Received: from dan (dan.mostgraveconcern.com [10.20.155.5]) by mostgraveconcern.com (8.11.4/8.11.4) with SMTP id f941QJ883090; Wed, 3 Oct 2001 18:26:19 -0700 (PDT) (envelope-from dan@mostgraveconcern.com) Message-ID: <047b01c14c73$92122fe0$059b140a@dan> From: "Dan O'Connor" To: "Ernst de Haan" , References: <200110011017.f91AHRE02734@zaphod.euronet.nl> Subject: Re: Automatically cvsupdating? Date: Wed, 3 Oct 2001 18:23:50 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 > 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. --Dan -- Dan O'Connor On Matters of Most Grave Concern http://www.mostgraveconcern.com FreeBSD Cheat Sheets http://www.mostgraveconcern.com/freebsd/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message