Last Updated: February 25, 2016
· derrylwc

Use sounds in your shell scripts

Sometimes when I'm running a long script, I'd like to know when it's done, without having to check on it constantly.

If you echo out the ASCII character for BELL (Beep), your system will play the corresponding sound.

echo -e "\007"

Go ahead, try it! You can also press Ctrl + G to achieve the same result.

Note: this has only been tested on OS X. I'm assuming it works for any *nix system.

Say Thanks