Project

General

Profile

Feature #408

beep command needed

Added by Samuel Younge almost 10 years ago. Updated almost 10 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Start date:
2010-11-10
Due date:
% Done:

0%

Estimated time:
Difficulty:
Tags:
Gerrit CR:

Description

It would be nice to have a way to script an audible alert.
GNU system normally use the beep command for this.

As it is one must continually look to see if custom scripts have finished processing.

History

#1

Updated by Gary Mills almost 10 years ago

`tput bel' works.

#2

Updated by Garrett D'Amore almost 10 years ago

There are multiple ways to do this:

a) echo CTRL-G on a console terminal

b) audioplay <some file> pick any .wav

I really don't think a separate beep command is needed. audioplay should be adequate all by itself... note that a number of possible audio files live in /usr/demo/SOUND/sounds/

I'm half inclined to just reject this out of hand, but if someone really thinks that an actual beep command is needed, we can provide one easily enough.

#3

Updated by Damian Wojslaw almost 10 years ago

It may simplify porting scripts from Linuxes.

#4

Updated by Matt Lewandowsky almost 10 years ago

I really really really see no need for this to be in Illumos proper. If a distro wishes to include a beep command, I recommend the following (based upon the above):

#!/bin/sh
tput bel

Yes, it spawns a new shell and forks. But it will still be faster than needed for any use case that comes to mind. I agree with rejection. :) There is nothing wrong with a simple script to do a simple thing, if it does it "good enough". And if a distro does not agree, there is no one stopping them from writing a quickie program in C to do it. I think "make the terminal beep" was one of the first things I learnt years ago, in fact...

Also available in: Atom PDF