LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-22-2004, 05:39 PM   #1
Sn7
LQ Newbie
 
Registered: May 2004
Posts: 25

Rep: Reputation: 15
PC Speaker


Hi how can I make the pc speaker beep constantly with a linux script?

Thanks
 
Old 09-22-2004, 10:25 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
bad programming to make it go "forever"
if you want it to go all crazy and annoying just take out the sleep
and then adjust the seconds limit as needed

Code:
#!/bin/bash
INTERVAL=1
LIMIT=3
while [ "$SECONDS" -le "$LIMIT" ]
do
    echo -e "\a"
    sleep $INTERVAL
done
exit 0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PC Speaker not working. gbowden Linux - Hardware 7 12-24-2005 05:04 AM
pc speaker problem 03mcmt02 Fedora 5 05-30-2005 12:52 AM
Disabling the PC Speaker tumbelo SUSE / openSUSE 2 04-04-2005 02:08 PM
pc speaker slowly Linux - General 4 04-16-2004 11:45 AM
pc speaker alaios Linux - Hardware 1 11-14-2003 12:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration