Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I run this script I don't here any beeps - I suppose it is because there is no speaker attached to the mainboard.
Is there a way to redirect this beeps to the "normal" audio?

#!/usr/bin/env perl
use warnings;
use strict;

my $beep = "\07";

print $beep;
sleep 2;
print $beep;
sleep 2;
print $beep;
share|improve this question
I'm unsure, but I suspect the handling of the Bell character is terminal emulator-specific... If you're using Perl, however, there might be other ways. – sr_ Apr 25 '12 at 7:39

Load the snd-pcsp module to route beeps to the Alsa subsystem. This module is blacklisted by many distributions because it can be annoying. Comment out blacklist snd-pcsp from /etc/modprobe.conf or /etc/modprobe.d/*.

share|improve this answer
I'd like to accept your answer, but I didn't find snd-pcsp on my system (openSUSE 12.1) so I couldn't test this solution. – sid_com Apr 26 '12 at 7:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.