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]" [email protected] < /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]" [email protected] < /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

