From owner-freebsd-questions Tue Mar 20 5:19:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from host2.hostmatters.com (host2.hostmatters.com [209.239.36.156]) by hub.freebsd.org (Postfix) with ESMTP id 0C02B37B73E for ; Tue, 20 Mar 2001 05:19:35 -0800 (PST) (envelope-from ben@cahostnet.com) Received: from nhqadmin17 (224host13.redcross.org [162.6.224.13]) by host2.hostmatters.com (8.10.2/8.10.2) with SMTP id f2KDJX801948 for ; Tue, 20 Mar 2001 08:19:34 -0500 Message-ID: <01bb01c0b140$ff568f20$6102a00a@nhqadmin17> From: "Ben" To: Subject: Automating CVSUP Date: Tue, 20 Mar 2001 08:23:45 -0500 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 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----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 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