From owner-freebsd-questions Fri Jul 19 13:59:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C4D937B400 for ; Fri, 19 Jul 2002 13:59:21 -0700 (PDT) Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B9F843E4A for ; Fri, 19 Jul 2002 13:59:20 -0700 (PDT) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea [192.168.0.3]) by sage-one.net (8.11.6/8.11.6) with SMTP id g6JKxF501453; Fri, 19 Jul 2002 15:59:15 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20020719155914.025dd7b8@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Fri, 19 Jul 2002 15:59:14 -0500 To: Thomas Connolly , Freebsd-questions@FreeBSD.ORG From: "Jack L. Stone" Subject: Re: cron and cvsup In-Reply-To: <71ED4DBF1EA19A45A3765CA9548BE30A2124@server1.electrosoftso lutions.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 At 02:46 PM 7.19.2002 -0600, Thomas Connolly wrote: >Hello, >I'm brand new to FreeBSD and Unix both. Could someone provide me with an >example of how to create a both a cron tab and a cron job to run cvsup once >every month? I need it explained in terms a 2 year old could understand. >I've looked at the man pages for cron and cvsup but it's over my head. I >was told in the newbies list to post all my questions here so I apologize to >all you guru's here. > >Thanks in advance, > >Tom > Tom: For starters, here is a script with the cron below the script: cvsupscript #!/bin/sh /usr/local/bin/cvsup -g -L 2 /usr/src/sage-supfile echo "Ports had been updated at server" | mail -s "Server CVSup" mail_to_me cd /usr/ports make index | sendmail mail_to_me Cron: # Run cvsup every month on the 1st day 0 * 1 * * /usr/local/bin/cvsupscript Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message