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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADDING A SYSTEM BEEP TO A SCRIPT

Status
Not open for further replies.

johngiggs

Technical User
Oct 30, 2002
492
US
I am writing a script to check to see if a process is running, and if it is not, I would like it to cause a system beep. Any ideas on how I could accomplish this would be greatly appreciated.

Thanks,

John
 
olded,

I tried entering "echo "\07"" from the command line, however nothing happened.

John
 
John:

executing

echo "\07"

works on my solaris 7 and even my MKS korn shell under DOS (sorry, Windows NT). If you're running Linux, try:

echo -e '\a'

got this from the echo man page.

Regards,

Ed
 
echo "^G" should also work -----------
when they don't ask you anymore, where they are come from, and they don't tell you anymore, where they go ... you'r getting older !
 
I got it to work with "echo ^G" (control-g). I only got "echo "\07"" to work with AIX.

Thank you all for your help!!

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top