#!/bin/sh # Simple alarm which uses BEEP to echo beeps to the terminal when system # time is equal to the first parameter (ie, usage: alarm ) # by Ken P Chasse, but anyone who puts their name on this is asking for alot. :) while true do a=`date | cut -c12-16` echo now $a, ring @ $1 if [ $a = $1 ]; then while true; do beep > /dev/tty0 & done fi # can sleep close to a minute, but dont want to miss the check in case # the system doesnt let alarm run for 15 seconds in heavy loads sleep 19 done