From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2981413877A for ; Mon, 14 Jul 2014 11:46:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC657E08CD; Mon, 14 Jul 2014 11:46:48 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 764D6E0886 for ; Mon, 14 Jul 2014 11:46:47 +0000 (UTC) Received: from hactar.digimed.co.uk (hactar.digimed.co.uk [192.168.1.3]) by mail.digimed.co.uk (Postfix) with ESMTPSA id 74C502314E for ; Mon, 14 Jul 2014 12:46:46 +0100 (BST) Date: Mon, 14 Jul 2014 12:46:48 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build? Message-ID: <20140714124648.2b5af055@hactar.digimed.co.uk> In-Reply-To: <53C3B689.4080605@wht.com.au> References: <53C3B689.4080605@wht.com.au> Organization: Digital Media Production X-Mailer: Claws Mail 3.10.1-119-g7fbc83 (GTK+ 2.24.24; x86_64-pc-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@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/3jcVUSGxyLupN=VuDqHTjL0"; protocol="application/pgp-signature" X-Archives-Salt: 57ca59d7-71f2-4cdd-9cb0-935bdafc8df3 X-Archives-Hash: 07fd2d2df7421dba62cc142a62c1923c --Sig_/3jcVUSGxyLupN=VuDqHTjL0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 14 Jul 2014 18:52:57 +0800, Andrew Lowe wrote: > I have a laptop churning away in the loungeroom doing an > "emerge -NuD world" whilst I'm in my office, amongst other things > composing this email. If my world update fails, I won't know until I > look at the screen in the other room. Is there a way to get emerge to > play a song depending upon the status of the emerge build? Using portage hooks, either globally in /etc/portage/bashrc or per package in /etc/portage/package.env. I have this in bashrc to warn me of failures register_die_hook ebuild_failed ebuild_failed { do something foreboding } I actually have it send an alert to my phone with Posterous but you can do whatever you want. I also use package.env to alert me when particularly time-consuming ebuilds, like LibreOffice and Chromium, have completed successfully. --=20 Neil Bothwick Profanity, The Language of Computer Professionals. --Sig_/3jcVUSGxyLupN=VuDqHTjL0 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlPDwygACgkQum4al0N1GQNr1QCfYeNVRwlnnbBGAgdYAKD0zkxH hyYAn1Y9HcWmFClHvZmXC6PU8w2HJgyD =t1zC -----END PGP SIGNATURE----- --Sig_/3jcVUSGxyLupN=VuDqHTjL0--