Date: Wed, 3 Oct 2001 18:23:50 -0700 From: "Dan O'Connor" <dan@mostgraveconcern.com> To: "Ernst de Haan" <ernsth@nl.euro.net>, <questions@FreeBSD.ORG> Subject: Re: Automatically cvsupdating? Message-ID: <047b01c14c73$92122fe0$059b140a@dan> References: <200110011017.f91AHRE02734@zaphod.euronet.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 "<PRE>" /usr/local/bin/cvsup -g -L 2 /usr/src/stable-supfile echo "</PRE>" 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?047b01c14c73$92122fe0$059b140a>