Project

General

Profile

Actions

Feature #408

open

beep command needed

Added by Samuel Younge about 13 years ago. Updated about 13 years ago.

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

0%

Estimated time:
Difficulty:
Tags:
Gerrit CR:
External Bug:

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.

Actions #1

Updated by Gary Mills about 13 years ago

`tput bel' works.

Actions #2

Updated by Garrett D'Amore about 13 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.

Actions #3

Updated by Damian Wojslaw about 13 years ago

It may simplify porting scripts from Linuxes.

Actions #4

Updated by Matt Lewandowsky about 13 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...

Actions

Also available in: Atom PDF