[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: beep unconditionally



On  0, Dan Jacobson <jidanni@deadspam.com> wrote:
> How kind of you all to offer your "beep" and "ditty" solutions, I will
> have to try them next time I break out the 8 woody CDs.
> 
> However your suggestions of print(1) and echo(1) do not fill the bill
> as I want a way to get the little speaker to beep due to #2:
> 1. with standard tools
> 2. from a batch script not connected to any terminal
> 3. don't have to be root, however yes, a running X as a regular user
> 
> Dan> I used to do the below, but now:
> Dan> $ echo -e \\a > /dev/console 
> Dan> bash: /dev/console: Permission denied

Do you mean something like this:

--- thing.sh ---
sleep 3
echo -e \\a
--- thing.sh ---

# nohup ./thing.sh &

?

Tom
-- 
Tom Cook
Information Technology Services, The University of Adelaide

"If it weren't for electricity we'd all be watching television by candlelight."
	- George Gobol

Get my GPG public key: https://pinky.its.adelaide.edu.au/~tkcook/tom.cook-at-adelaide.edu.au

Attachment: pgp3IuwLkavur.pgp
Description: PGP signature


Reply to: