Date: Tue, 20 Mar 2001 08:23:45 -0500 From: "Ben" <ben@cahostnet.com> To: <questions@freebsd.org> Subject: Automating CVSUP Message-ID: <01bb01c0b140$ff568f20$6102a00a@nhqadmin17>
next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm not a programmer so this is a little different. I will like to automate the cvs process. I don't think I want to keep doing this manually. I know that using a cron job to run is probably the best way to go. In the Windows world we use batch jobs to run things. I was wondering if I can use the same type of process in the Unix world. This is what I mean. To update your system you perform the following steps. I will like to put those steps in a file called cvsupdate and then have a cron job that runs it. It will be as follows: *****Change to root directory cd / *****Echo Running cvsup to update sources cvsup -g -L 2 stablebsd-supfile *****Echo Updating ports cvsup -g -L 2 ports-supfile *****Echo Updating the sources cd /usr/src make buildworld *****Echo Synchronizing the KERNEL make buildkernel KERNCONF=mykernel make installkernel KERNCONF=mykernel *****Echo Rebooting the system (Don't know how this is going to work or if I need to reboot. Comments! #shutdown -r now *****Running world Installation make installworld *****Reboot the machine shutdown -r now *****Send e-mail mail ben@cahostnet.com mail root Will this work? Can someone tell me how I can accomplish this and also if I wanted to execute this myself how would I do it? Thanks, Ben -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com> iQA/AwUBOrdZ2wht7rD8NlhDEQKq3gCfdri3LxwTpfuhTv3bXFcrZlU/1UQAn3Qm TOlYUFvZT2Huhz5T9MycDQFO =MFAp -----END PGP SIGNATURE----- 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?01bb01c0b140$ff568f20$6102a00a>