6_u5_w
Last Updated: February 25, 2016
·
620
· derrylwc
45d89c9e9975d229c1d43400d14eaa49

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
Respond