Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jul 2002 15:59:14 -0500
From:      "Jack L. Stone" <jackstone@sage-one.net>
To:        Thomas Connolly <tconnolly@electrosoftsolutions.com>, Freebsd-questions@FreeBSD.ORG
Subject:   Re: cron and cvsup
Message-ID:  <3.0.5.32.20020719155914.025dd7b8@mail.sage-one.net>
In-Reply-To: <71ED4DBF1EA19A45A3765CA9548BE30A2124@server1.electrosoftso lutions.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.20020719155914.025dd7b8>