From: Joost Roeleveld <joost@antarean.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Howzat!
Date: Tue, 19 Apr 2011 14:40:48 +0200 [thread overview]
Message-ID: <20110419124136.9AB062A14@data.antarean.org> (raw)
In-Reply-To: <20110419090418.00cdff45@digimed.co.uk>
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
next prev parent reply other threads:[~2011-04-19 12:42 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-18 1:28 [gentoo-user] Howzat! Peter Humphrey
2011-04-18 1:44 ` Dale
2011-04-18 4:53 ` Joshua Murphy
2011-04-18 7:52 ` Florian Philipp
2011-04-18 8:12 ` Neil Bothwick
2011-04-18 9:32 ` Florian Philipp
2011-04-19 22:40 ` Kfir Lavi
2011-04-19 22:54 ` Dale
2011-04-20 7:33 ` Joost Roeleveld
2011-04-20 8:42 ` Dale
2011-04-20 9:25 ` Joost Roeleveld
2011-04-20 9:49 ` Pandu Poluan
2011-04-20 10:24 ` Joost Roeleveld
2011-04-21 5:41 ` Pandu Poluan
2011-04-21 15:49 ` Paul Hartman
2011-04-20 12:37 ` Joost Roeleveld
2011-04-20 13:16 ` Alan McKinnon
2011-04-20 13:41 ` Joost Roeleveld
2011-04-20 20:06 ` Alan McKinnon
2011-04-20 21:38 ` Mick
2011-04-18 11:22 ` Peter Humphrey
2011-04-18 12:44 ` Neil Bothwick
2011-04-18 14:35 ` Peter Humphrey
2011-04-18 14:51 ` Florian Philipp
2011-04-18 15:48 ` Peter Humphrey
2011-04-18 15:59 ` Peter Humphrey
2011-04-18 21:56 ` Neil Bothwick
2011-04-19 5:34 ` Thanasis
2011-04-19 6:57 ` Joost Roeleveld
2011-04-19 8:04 ` Neil Bothwick
2011-04-19 12:07 ` Thanasis
2011-04-20 13:33 ` Neil Bothwick
2011-04-20 21:23 ` Thanasis
2011-04-20 22:01 ` Neil Bothwick
2011-04-21 7:44 ` Thanasis
2011-04-21 8:03 ` Neil Bothwick
2011-04-21 8:15 ` Thanasis
2011-04-21 10:57 ` Thanasis
2011-04-21 13:26 ` Neil Bothwick
2011-04-21 14:45 ` Thanasis
2011-04-21 22:09 ` Neil Bothwick
2011-04-22 5:05 ` Thanasis
2011-04-22 7:14 ` Neil Bothwick
2011-04-22 8:12 ` Thanasis
2011-04-22 13:00 ` Neil Bothwick
2011-04-22 15:26 ` Thanasis
2011-04-22 18:46 ` Neil Bothwick
2011-04-21 13:41 ` Mark Knecht
2011-04-21 22:42 ` Neil Bothwick
2011-04-22 0:38 ` Mark Knecht
2011-04-19 12:40 ` Joost Roeleveld [this message]
2011-04-20 10:40 ` Thanasis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110419124136.9AB062A14@data.antarean.org \
--to=joost@antarean.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox