From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
Date: Mon, 14 Jul 2014 13:40:28 +0200 [thread overview]
Message-ID: <53C3C1AC.7050408@gmail.com> (raw)
In-Reply-To: <CAKx5OMZnLJy2a7B8DP91tp2T4XoB+YOsMxdn6OvOdBtVHzr9xA@mail.gmail.com>
On 14/07/2014 13:29, Vladimir Romanov wrote:
>
> 2014-07-14 17:28 GMT+06:00 Vladimir Romanov <blueboar2@gmail.com
> <mailto:blueboar2@gmail.com>>:
>
>
>
>
> 2014-07-14 17:25 GMT+06:00 the <the.guard@mail.ru
> <mailto:the.guard@mail.ru>>:
>
> -----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
next prev parent reply other threads:[~2014-07-14 11:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-14 10:52 [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build? Andrew Lowe
2014-07-14 11:15 ` Vladimir Romanov
2014-07-14 11:25 ` the
2014-07-14 11:28 ` Vladimir Romanov
2014-07-14 11:29 ` Vladimir Romanov
2014-07-14 11:40 ` Alan McKinnon [this message]
2014-07-14 11:47 ` Neil Bothwick
2014-07-14 12:07 ` Andrew Lowe
2014-07-14 11:46 ` Neil Bothwick
2014-07-14 12:09 ` Andrew Lowe
2014-07-14 12:21 ` Neil Bothwick
2014-07-15 9:17 ` J. Roeleveld
2014-07-15 9:57 ` Neil Bothwick
2014-07-16 16:46 ` Johám-Luís Miguéns Vila
2014-07-16 19:00 ` J. Roeleveld
2014-07-17 21:34 ` john
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=53C3C1AC.7050408@gmail.com \
--to=alan.mckinnon@gmail.com \
--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