From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GfEu2-0007Fk-82 for garchives@archives.gentoo.org; Wed, 01 Nov 2006 12:09:06 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id kA1C6I3J011569; Wed, 1 Nov 2006 12:06:18 GMT Received: from desiato.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id kA1C4Bll015494 for ; Wed, 1 Nov 2006 12:04:11 GMT Received: from krikkit.digimed.co.uk (krikkit.digimed.co.uk [192.168.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by desiato.digimed.co.uk (Postfix) with ESMTP id 9896084AD5 for ; Wed, 1 Nov 2006 12:04:10 +0000 (GMT) Date: Wed, 1 Nov 2006 12:04:05 +0000 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] drift: cron, emerge and mail Message-ID: <20061101120405.4c6e409b@krikkit.digimed.co.uk> In-Reply-To: <4547692B.9050804@ilievnet.com> References: <4546607D.6070802@ilievnet.com> <20061031095948.6fb62463@lx-arnau.pic.es> <45475849.9090205@ilievnet.com> <20061031144233.72ad43c8@krikkit.digimed.co.uk> <4547692B.9050804@ilievnet.com> Organization: Digital Media Production X-Mailer: Sylpheed-Claws 2.5.6 (GTK+ 2.10.6; powerpc-unknown-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_qxIYTltwCqA9r=rgMH5K0UJ"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: 88867869-b3fa-471b-b235-f72ca617dc01 X-Archives-Hash: c87931f1c6de34d85c0bb02aeb7da715 --Sig_qxIYTltwCqA9r=rgMH5K0UJ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 31 Oct 2006 17:18:03 +0200, Daniel Iliev wrote: > Let me explain what I'm trying to do. I want to automate "emerge --sync > && emerge -DuNv world" with a cron job I'm not sure automating emerge -u world is good idea. I have a cron task that does emerge --sync emerge -upvDN world | mail emerge -ufDN world Then I read the mail and decide on the updates before anything is merged. > and to receive mails for the > portage activities. I really don't need all the gcc output. I only need > the portage "info warn error" messages PORTAGE_ELOG will do this for you. > in order to know if I have to do "dispatch-conf", It won't do this, but "find $(portageq config_protect) -name '._cfg*'" will. Or you could put it in a script with if [ "$(find $(portageq config_protect) -name '._cfg*' | wc -l)" !=3D "0" ] then echo "Run dispatch-conf" fi =20 > if some package has failed and if there is some > important note about changes in the structure/functionality of a given > package. PORTAGE_ELOG will tell you that. --=20 Neil Bothwick Madness takes its toll. Exact change, please. --Sig_qxIYTltwCqA9r=rgMH5K0UJ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFSI04um4al0N1GQMRAh9AAJ9DnTTCx7K8T6JUMlDUAO3Fi2X1RQCfQBrr NdLlhXmd5XwT7MnQvbXA2WM= =J6Eb -----END PGP SIGNATURE----- --Sig_qxIYTltwCqA9r=rgMH5K0UJ-- -- gentoo-user@gentoo.org mailing list