Subject: Re: spkr beep
To: Paul (NCC/CS) <pts@bom.gov.au>
From: Brian Buhrow <buhrow@lothlorien.nfbcal.org>
List: port-sparc
Date: 12/14/2002 02:25:06
	Hello.  this script I use under NetBSD
might work.  Try man spkr for more details on how to set
tone, duration, etc.
-Brian

#!/bin/sh
#$Id: chime.sh,v 1.2 2001/03/06 23:06:28 buhrow Exp $
#NAME: Brian Buhrow
#DATE: March 6, 2001
#
#This script sounds the speaker device and counts the current
#time.  If run at the top of the hour, it will act as a clock chime.

PATH=/bin:/usr/bin:/usr/local/bin; export PATH
DEVICE="/dev/speaker"
CHIME="<l6cp12>"


echo "l4c" > $DEVICE
echo $CHIME |awk  \
 'BEGIN { count = strftime("%l" ) ; start = 0 } { while (start + 0 < count + 0) { \
	print $0 ; start += 1 } } END { }' > $DEVICE

exit 0