Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System Beep with Perl?

Status
Not open for further replies.

Kenny100

Technical User
Feb 6, 2001
72
0
0
NZ
Hi Folks

Is it possible to perform a simple SYSTEM BEEP using Perl or alternatively play a specific .wav file? I'd appreciate advice on either of the two methods.

Cheers,
Kenny.
 
marblecat
use \a
example:
print "\a";

Ok I am going to ask what does the \a do?

I mean is that the sysble for the system sound?
and if so are These all laid out some where on a page for Us?
Thanks marblecat




MA WarGod

I believe if someone can think it, it can be programmed
 
Thanks guys, but I tried the "print \a" method last night and my speaker didn't beep. I'm running Perl under WinXP Home - is there something I am doing wrong?
 
How did you use it? I tested it under Win2k from the command prompt and I got a spiffy little beep:

C:\>perl -e "print \"\a\"" Notorious P.I.G.
 
At the command prompt I typed:

C:\>perl -e "print \"\a\""

and sure enough got a nice wee beep. But when I try to include this in my perl script:

print "\a";

it doesn't work. What am I doing wrong :(

Cheers,
Kenny.
 
"Ok I am going to ask what does the \a do?

I mean is that the sysble for the system sound?
and if so are These all laid out some where on a page for Us?"

Sorry,I don't understand what you mean."sysble"?,what does it means? A computer word? sorry,English is not my native language.my msn messenger ID: avli2003@hotmail.com
I am glad to talk with you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top