Creating a Beep from a Command Line or Shell Script

If you have a long-running command on shell-script that you want to generate a beep upon completion on your PC running Linux do the following:

. Make sure that the pcspkr module is loaded:

# modprobe pcspkr

. Then create a wrapper shell script that looks something like this:

#!/bin/bash

# Some long running command here . . .

echo -e ‘\a’ > /dev/console

Continue reading “Creating a Beep from a Command Line or Shell Script”