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 21A601392EF for ; Mon, 14 Jul 2014 12:07:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E43FBE08A6; Mon, 14 Jul 2014 12:07:24 +0000 (UTC) Received: from mail12.tpgi.com.au (mail12.tpgi.com.au [203.12.160.162]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 55A9FE0870 for ; Mon, 14 Jul 2014 12:07:23 +0000 (UTC) X-TPG-Junk-Status: Message not scanned X-TPG-Antivirus: Passed X-TPG-Abuse: host=27-33-235-192.static.tpgi.com.au; ip=27.33.235.192; date=Mon, 14 Jul 2014 22:07:20 +1000 Received: from [192.168.14.2] (27-33-235-192.static.tpgi.com.au [27.33.235.192]) by mail12.tpgi.com.au (envelope-from agl@wht.com.au) (8.14.3/8.14.3) with ESMTP id s6EC7IeM025683 for ; Mon, 14 Jul 2014 22:07:20 +1000 Message-ID: <53C3C7F7.3080503@wht.com.au> Date: Mon, 14 Jul 2014 20:07:19 +0800 From: Andrew Lowe Organization: Wombat High Tech 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> <53C3C1AC.7050408@gmail.com> In-Reply-To: <53C3C1AC.7050408@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 27d26525-fda8-47d4-b297-d3c31001a63d X-Archives-Hash: e3ea49c85a977712d4337e3047c88752 On 07/14/2014 07:40 PM, Alan McKinnon wrote: > On 14/07/2014 13:29, Vladimir Romanov wrote: >> >> 2014-07-14 17:28 GMT+06:00 Vladimir Romanov > >: >> [snip] >> 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 Alan has it right, play something when the emerge succeeds, something else when it fails. Got plenty of Pink Floyd, but no "what's his face" - I can't even bring myself to type his name ;) I'd probably just use Chopin's Funeral March... Andrew