From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QCUrG-0004Cb-0O for garchives@archives.gentoo.org; Wed, 20 Apr 2011 10:42:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 226D91C017; Wed, 20 Apr 2011 10:40:08 +0000 (UTC) Received: from vergina.dyndns.org (cust-218-222.on4.ontelecoms.gr [92.118.218.222]) by pigeon.gentoo.org (Postfix) with ESMTP id BE4951C017 for ; Wed, 20 Apr 2011 10:40:07 +0000 (UTC) Received: from [192.168.0.1] (viper.vergina.dyndns.org [192.168.0.1]) by viper.vergina.dyndns.org (Postfix) with ESMTP id CA61557F; Wed, 20 Apr 2011 13:40:05 +0300 (EEST) Message-ID: <4DAEB801.7050300@asyr.hopto.org> Date: Wed, 20 Apr 2011 13:40:01 +0300 From: Thanasis User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110407 Lightning/1.0b3pre Thunderbird/3.1.9 ThunderBrowse/3.3.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org CC: Joost Roeleveld Subject: Re: [gentoo-user] Howzat! References: <201104180228.59487.peter@humphrey.ukfsn.org> <20110419065754.D2F7C39B2@data.antarean.org> <20110419090418.00cdff45@digimed.co.uk> <20110419124136.9AB062A14@data.antarean.org> In-Reply-To: <20110419124136.9AB062A14@data.antarean.org> Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: f12f0d8c702243e34d8b211c7116bca9 on 04/19/2011 03:40 PM Joost Roeleveld wrote the following: > On Tuesday 19 April 2011 09:04:18 Neil Bothwick wrote: >> On Tue, 19 Apr 2011 08:57:07 +0200, Joost Roeleveld wrote: >>>>> Incidentally, my cron script that runs emerge --sync follows it >>>>> with >>>>> emerge-uDNf world, so the files are already in $DISTDIR when I >>>>> want >>>>> to update. >>>> Can you post the script? >>> My guess is that the script would be something like the following: >>> ===== >>> #!/bin/sh >>> # >>> emerge --sync >>> emerge -uDNf world >>> ===== >> That's the gist of it, although it also emails the output from emerge >> -pvDN world, so I can see what needs to be done. It runs a few other >> bits, like glsa-check. > Like the following? > ===== > #!/bin/sh > # > /bin/mkdir /tmp/ABBAABBA_portage_sync > > /usr/bin/layman -S > > /usr/bin/eix-sync > > /usr/bin/glsa-check -d $(/usr/bin/glsa-check -t all) > > /tmp/ABBAABBA_portage_sync/portage_sync_glsa.log > > /bin/mail -e -s "Portage Sync [GLSA-log]" memyselfandi@example.org < > /tmp/ABBAABBA_portage_sync/portage_sync_glsa.log > > /bin/rm /tmp/ABBAABBA_portage_sync/portage_sync_glsa.log > > /usr/bin/emerge -pvauD --newuse world > > /tmp/ABBAABBA_portage_sync/portage_sync_emerge.log > > /bin/mail -e -s "Portage Sync [EMERGE-list]" memyselfandi@example.org < > /tmp/ABBAABBA_portage_sync/portage_sync_emerge.log > > /bin/rm /tmp/ABBAABBA_portage_sync/portage_sync_emerge.log > > /bin/rmdir /tmp/ABBAABBA_portage_sync > ===== > In the above script, I put an empty line between each command for readability. > > This is what I run on my system. > > -- > Joost Joost, Thanks! :)