This program causes your computer to beep until you press the enter key. This is useful when placed after a long process to alert the user that something requires his/her attention. The program will accept options to control the rate of beeping (the default is 1 beep per second) and the prompting message.
alarm [ -h | --help ] [-s seconds] [-m message]
-h, --help Display this help message and exit. -s seconds seconds between beeps -m message message to display
Causes the computer to beep at the default 1 beep per second and display the default prompt message - "alarm: Press enter to continue".
alarm -s 5 -m "Process is complete."
Beeps once every 5 seconds and displays the message text "Process is complete" in the prompt.
Just copy this script into the directory of your choice. /usr/local/bin is a good choice.
Works fine with Red Hat 5.x-7.x. This is generic bash so it will probably work on any platform that supports bash and will make a noise when a BELL character is echoed to the terminal.
Copyright 2000-2002, William Shotts, Jr. <email@example.com>
This software is part of the LinuxCommand.org project, a site for Linux education and advocacy devoted to helping users of legacy operating systems migrate into the future.
You may contact the LinuxCommand.org project at:
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
$Id: alarm.README,v 1.3 2002/02/18 14:18:38 bshotts Exp $