begin quote On Fri, 22 Aug 2003 11:03:09 +1000 blade- <[EMAIL PROTECTED]> wrote:
> Has anyone made a script that will, emerge sync, emerge -UDp world > outputs the results to email? > I am not to good at shell scripting, I have been trying to base it off > a script I have that updates the root hints and email the results but > I am not getting any where. I want it to be a daily cronjob so I dont > have to do it manually everyday. > Try something like this : cat > /usr/local/sbin/update.sh <<EOF #! /bin/bash emerge sync >/dev/null 2>&1 emerge -vup world EOF chmod +x /usr/local/sbin/update.sh And for root's crontab: 0 0 * * * /usr/local/sbin/update.sh //Spider -- begin .signature This is a .signature virus! Please copy me into your .signature! See Microsoft KB Article Q265230 for more information. end
pgp00000.pgp
Description: PGP signature
