Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Sep 2001 14:59:20 -0700 (PDT)
From:      Mikko Tyolajarvi <mikko@dynas.se>
To:        tony@camel.kdsi.net
Cc:        questions@freebsd.org
Subject:   Re: Is there a system/Perl command to make a "beep?"
Message-ID:  <200109192159.f8JLxKp57310@explorer.rsa.com>
References:  <3BA8F719.455B062E@camel.kdsi.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In local.freebsd.questions you write:

>This is a *really* dumb question...

>For an xchat script, I'm trying to sound an alert on different
>conditions, but I'm not sure what the magic is.

>Is there either a way in Perl or a system command that all it does is
>beep?

If your program is tty-based, you can print an ASCII BEL character (7).
E.g.
	perl -e 'print "\007";'

  $.02,
  /Mikko
-- 
 Mikko Työläjärvi_______________________________________mikko@rsasecurity.com
 RSA Security

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109192159.f8JLxKp57310>