Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
On Wed, 16 Jul 2014 21:00:42 +0200 J. Roeleveld jo...@antarean.org wrote: On 16 July 2014 18:46:16 CEST, galiza.ce...@gmail.com wrote: J. Roeleveld jo...@antarean.org writes: On Monday, July 14, 2014 12:46:48 PM Neil Bothwick wrote: I actually have it send an alert to my phone with Posterous but you can do whatever you want. Which Posterous is this? When I google it, I only get information that it actually got shut down after being bought by Twitter. I am looking for a cheap method to get notifications to my mobile phone. I used to use a free SMS service via a company in SA. Maybe Telegram[1] fits your needs. You'd need: - The appropriate client on the phone side. - Telegram CLI [2] on the computer. - A little shell script, such as (usage: script USER MESSAGE) #!/bin/sh /path/to/telegram -B -k /path/to/tg.pub AAA msg $1 $2 safe_quit AAA You could also send logfiles (^msg^send_text, $2 being the path to text file) HTH [1] http://www.telegram.org [2] https://github.com/vysheng/tg -- JOOST This and pushover look interesting. But I also need something that doesn't require a data connection. I am occasionally in places with bad reception and SMS is often still usable. Never mind the cost of maintaining a data connection while roaming. (Receiving SMS is free in any country I care to visit with my contract) I don't mind paying for the service. But it needs to be affordable. -- Joost Hmm, From this there should be a change to Gentoo policy. For every sucessful ebuild emerged there should be a rendition of Run Like Hell I wonder what songs are appropriate to Gentoo? -- John D Maunder
Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
J. Roeleveld jo...@antarean.org writes: On Monday, July 14, 2014 12:46:48 PM Neil Bothwick wrote: I actually have it send an alert to my phone with Posterous but you can do whatever you want. Which Posterous is this? When I google it, I only get information that it actually got shut down after being bought by Twitter. I am looking for a cheap method to get notifications to my mobile phone. I used to use a free SMS service via a company in SA. Maybe Telegram[1] fits your needs. You'd need: - The appropriate client on the phone side. - Telegram CLI [2] on the computer. - A little shell script, such as (usage: script USER MESSAGE) #!/bin/sh /path/to/telegram -B -k /path/to/tg.pub AAA msg $1 $2 safe_quit AAA You could also send logfiles (^msg^send_text, $2 being the path to text file) HTH [1] http://www.telegram.org [2] https://github.com/vysheng/tg -- JOOST -- Do you know Montana? - This message may be digitally signed: GPG KeyID:0x9D2FD6C8 || FNMT SSL cert
Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
On 16 July 2014 18:46:16 CEST, galiza.ce...@gmail.com wrote: J. Roeleveld jo...@antarean.org writes: On Monday, July 14, 2014 12:46:48 PM Neil Bothwick wrote: I actually have it send an alert to my phone with Posterous but you can do whatever you want. Which Posterous is this? When I google it, I only get information that it actually got shut down after being bought by Twitter. I am looking for a cheap method to get notifications to my mobile phone. I used to use a free SMS service via a company in SA. Maybe Telegram[1] fits your needs. You'd need: - The appropriate client on the phone side. - Telegram CLI [2] on the computer. - A little shell script, such as (usage: script USER MESSAGE) #!/bin/sh /path/to/telegram -B -k /path/to/tg.pub AAA msg $1 $2 safe_quit AAA You could also send logfiles (^msg^send_text, $2 being the path to text file) HTH [1] http://www.telegram.org [2] https://github.com/vysheng/tg -- JOOST This and pushover look interesting. But I also need something that doesn't require a data connection. I am occasionally in places with bad reception and SMS is often still usable. Never mind the cost of maintaining a data connection while roaming. (Receiving SMS is free in any country I care to visit with my contract) I don't mind paying for the service. But it needs to be affordable. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
On Monday, July 14, 2014 12:46:48 PM Neil Bothwick wrote: I actually have it send an alert to my phone with Posterous but you can do whatever you want. Which Posterous is this? When I google it, I only get information that it actually got shut down after being bought by Twitter. I am looking for a cheap method to get notifications to my mobile phone. I used to use a free SMS service via a company in SA. -- Joost
Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
On Tue, 15 Jul 2014 11:17:33 +0200, J. Roeleveld wrote: I actually have it send an alert to my phone with Posterous but you can do whatever you want. Which Posterous is this? When I google it, I only get information that it actually got shut down after being bought by Twitter. Sorry, brain fade. I meant Pushover - https://pushover.net - I did use Posterous before it got shut down, but that was for something completely different. I am looking for a cheap method to get notifications to my mobile phone. I used to use a free SMS service via a company in SA. This may do the job for you. I used to use NotifyMyAndroid but Pushover is faster (NMA sometimes had delays) and is a one-off cost of $5. -- Neil Bothwick Tagline stealing is the sincerest form of flattery. signature.asc Description: PGP signature
[gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
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 memory serves, an email can be sent letting you know what's happening, but a sound would be better. For example, on those days when you kick off an emerge then start pottering around the house doing stuff. All of a sudden Wagner's Ride of the Valkyries starts playing, and you know the emerge has karked it Thoughts greatly appreciated, Andrew
Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
You can consider section 6.c in Handbook: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3chap=6. There you can hook into Portage process and execute some media player after completing. Not sure how to check for failed status, but i think, it is possible. 2014-07-14 16:52 GMT+06:00 Andrew Lowe a...@wht.com.au: 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 memory serves, an email can be sent letting you know what's happening, but a sound would be better. For example, on those days when you kick off an emerge then start pottering around the house doing stuff. All of a sudden Wagner's Ride of the Valkyries starts playing, and you know the emerge has karked it Thoughts greatly appreciated, Andrew
Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
-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 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTw74lAAoJEK64IL1uI2haTB8H/0kbi37uYP1oPN7pxJRvY33D QapwWC9imC8ZNtYScW2ZB62cpkBSHXAx0ti46ENO9Omjmj3SP48zw9M5Lbjg9wiD il3aYTu82EnRorMrPDbPS6ztJVMLBn9pFOUEB3br1qwvXr35+a7xFVqoYckZtOZB QfaKcN4ApFFpC59DXoHtYf9OlvVbrg6vlvUHj7R3pzLor1Qd0SgQ51HhCaPiWaMP iLG+rYwhwrnRhPrKMNCNPo2RkX0qGKsstjeZFV35lOPiKvzXhBmF225bqG4RMWcs D+JVCx4ng/NHYVoiH2IIvLBQUGVhDpEkCHuBOEfEIfFgKwY4LsYXZKr35j/lboA= =9gp+ -END PGP SIGNATURE-
Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
2014-07-14 17:25 GMT+06:00 the the.gu...@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.
Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
2014-07-14 17:28 GMT+06:00 Vladimir Romanov bluebo...@gmail.com: 2014-07-14 17:25 GMT+06:00 the the.gu...@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?
Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
On 14/07/2014 13:29, Vladimir Romanov wrote: 2014-07-14 17:28 GMT+06:00 Vladimir Romanov bluebo...@gmail.com mailto:bluebo...@gmail.com: 2014-07-14 17:25 GMT+06:00 the the.gu...@mail.ru mailto:the.gu...@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.mckin...@gmail.com
Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
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. -- Neil Bothwick Profanity, The Language of Computer Professionals. signature.asc Description: PGP signature
Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
On Mon, 14 Jul 2014 13:40:28 +0200, Alan McKinnon wrote: Perhaps Andrew will chime in and clarify his needs. If all he needs are chimes, there is no need to contaminate his hard drive with Justin Bieber MP3s. -- Neil Bothwick Can you be a closet claustrophobic? signature.asc Description: PGP signature
Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
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 bluebo...@gmail.com mailto:bluebo...@gmail.com: [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
Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
On 07/14/2014 07:46 PM, Neil Bothwick wrote: 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. Neil, This sounds interesting. Care to share one of these hooks to show what they actually look like? Regards, Andrew
Re: [gentoo-user] Can emerge play a sound on either a successful/unsuccessful build?
On Mon, 14 Jul 2014 20:09:40 +0800, Andrew Lowe wrote: 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. Neil, This sounds interesting. Care to share one of these hooks to show what they actually look like? The path to Posterous my messages take is rather convoluted, but whatever you put in the ebuild_failed function will be executed on failure. For the success notifications, I put this in bashrc if [[ ${EBUILD_SUCCESS} == true ]]; then register_success_hook ebuild_success ebuild_success() { do something warm and fuzzy } fi /etc/portage.env/notify.conf contains EBUILD_SUCCESS=true and /etc/portage/package.env/libreoffice contains app-office/libreoffice notify.conf -- Neil Bothwick I can picture in my mind a world without war, a world without hate. And I can picture us attacking that world, because they'd never expect it. signature.asc Description: PGP signature