←back to thread

2039 points Gadiguibou | 1 comments | | HN request time: 0.232s | source
Show context
callumprentice ◴[] No.36492080[source]
Years ago, I wrote a script to find something in a big blob of data and to alert me when it was done, I added a “say <some glib Rambo or Schwarzenegger>” type phrase upon completion. I forgot about it and went to bed and was jolted awake hours later by what was clearly an “intruder” speaking to his accomplice, in my home office. Quite the relief when I realized what happened.
replies(5): >>36494341 #>>36495206 #>>36495778 #>>36496808 #>>36498600 #
joshstrange ◴[] No.36495206[source]
I use Pushover for a few alerts so years ago I wrote a little bash script called `push` that you pass a title and optionally a body. Was very nice to to `./longRunningCommand && push "Task Done" "Here is a body"`. I'd sometimes combine this with my `beep` script that just makes a noise for when I know I'll still be at my computer but want to know when something finishes.
replies(1): >>36512338 #
desro ◴[] No.36512338[source]
What's the beep script like? Do you use the terminal bell or does it synthesize a tone?
replies(1): >>36513280 #
1. joshstrange ◴[] No.36513280[source]
Here is my beep script, it's almost embarrassingly basic. You can pick a different sound, I wanted one that wasn't too offensive/harsh and I've used this for 3-4+ years.

#!/bin/bash

afplay -v 3 /System/Library/Sounds/Glass.aiff