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 2DEB613877A for ; Mon, 14 Jul 2014 11:41:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D104CE08B2; Mon, 14 Jul 2014 11:41:21 +0000 (UTC) Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B0DA7E08AD for ; Mon, 14 Jul 2014 11:41:20 +0000 (UTC) Received: by mail-wg0-f44.google.com with SMTP id m15so3876392wgh.3 for ; Mon, 14 Jul 2014 04:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=0N5VhSS4MTF0dWTPIic1cL0fY7zeUzWHW8+wsnySix0=; b=Cl+ZjQO1ZMMHBzOaqHFpl0UvcRGP7N0/30opvXbgCx6ubjTQo62YRhjBA3uplEjJgj Y22QniuGaWGi5/QtayiQbJpus456EOtnpg7k4WEEgUOqGifIp4X3pb6IZUS0MHkjTaZ/ bzbhG1WmxjWjjHsiuStw/qg4I4L++NIkzzMb1/wS80ZIQR4TWsk/tDMNx90imphqDFvE LfuPC5w4qSstU9QoFWetJcxdbpTSk1nXeionPlkl5rwcgkqEkKea0we0EK4HXk/hw3D7 J22WrUWevi58NzreGvGrzvwjCS6Idv1qPPimkpGj0zej/GAaxV8ItefQyqhOt0V+RV0t tZMA== X-Received: by 10.194.222.5 with SMTP id qi5mr18334941wjc.62.1405338078370; Mon, 14 Jul 2014 04:41:18 -0700 (PDT) Received: from [192.168.1.40] ([41.85.145.17]) by mx.google.com with ESMTPSA id ut2sm17587412wjc.49.2014.07.14.04.41.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Jul 2014 04:41:17 -0700 (PDT) Message-ID: <53C3C1AC.7050408@gmail.com> Date: Mon, 14 Jul 2014 13:40:28 +0200 From: Alan McKinnon User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 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 Subject: Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build? References: <53C3B689.4080605@wht.com.au> <53C3BE27.3060606@mail.ru> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 714b6027-6c80-44b7-b2d1-f18a632d3bf0 X-Archives-Hash: 37f55f148295e387e67b3a16eae8da55 On 14/07/2014 13:29, Vladimir Romanov wrote: > > 2014-07-14 17:28 GMT+06:00 Vladimir Romanov >: > > > > > 2014-07-14 17:25 GMT+06:00 the >: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > On 07/14/14 14:52, Andrew Lowe wrote: > > Hi all, 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? > > If I understand you correctly this can be done with bash like: > emerge <...> || play alert.mp3 > > > TC wants to select, which song to play on result of emerge. > > > Hmmm... Or am i wrong and it's not needed? No, you are right. From the OP: Is there a way to get emerge to play a song depending upon the status of the emerge build? I read the in one of two ways: 1. When emerge completes successfully, play something awesome (eg Pink Floyd). When emerge completes unsuccessfully, play something horrible (eg Justin Bieber). So maybe: emerge <...> && play Dark.Side.of.the.Moon.mp3 || play Bieber.Sucks.mp3 2. Play something nice while emerging, and switch to Justin Bieber if something goes wrong. This one is harder and will require tinkering with portage internals to read the current status. Perhaps Andrew will chime in and clarify his needs. -- Alan McKinnon alan.mckinnon@gmail.com