bad programming to make it go "forever"
if you want it to go all crazy and annoying just take out the sleep
and then adjust the seconds limit as needed
Code:
#!/bin/bash
INTERVAL=1
LIMIT=3
while [ "$SECONDS" -le "$LIMIT" ]
do
echo -e "\a"
sleep $INTERVAL
done
exit 0