LinuxQuestions.org
Visit the LQ Articles and Editorials section
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, 06: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, 11:25 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
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 06:04 AM
pc speaker problem 03mcmt02 Fedora 5 05-30-2005 01:52 AM
Disabling the PC Speaker tumbelo Suse/Novell 2 04-04-2005 03:08 PM
pc speaker slowly Linux - General 4 04-16-2004 12:45 PM
pc speaker alaios Linux - Hardware 1 11-14-2003 01:45 PM


All times are GMT -5. The time now is 09:16 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration