Create a terminal alias to the program's executable by running the command "pico.Download terminal-notifier and place the program in your Utilities folder.While you can put the audible alert command along with the terminal's "sleep" command in a script that loops them indefinitely and then invoke this script in order to maintain the alert indefinitely, there is another cleaner option available that makes use of Mountain Lion's notification system. Unfortunately the above options will only run once. Using this command in a similar manner as the "tput bel" option above, you can have the system speak a custom phrase when the terminal command or other process you are running is completed. OS X provides an integrated text-to-speech technology that can be invoked from the command line using the "say" command, so for instance to have the system speak some text, simply run the following command in the Terminal: The second option is similar to the first, but uses a different audible alert. In this case, the terminal will have the system alert sound play. In this sequence, the first command is run (in this case "top" to view system process status), and when it completes, the command after the semicolon will run. The system alert sound can be invoked from the Terminal by running "tput bel" at the command line, which can be put after a script or other command in a one-line command sequence similar to the following: The first option is to have the terminal invoke the system alert after the command is finished. However, if needed, you can set up the system to run commands so it does offer some notification. Unfortunately when a script or command finishes running, the Terminal will drop you to the command line again, without any notice to you. When you run a script or command in the OS X terminal, it can be useful to have some indication for when it is completed, especially if the script is a lengthy process you might not wish to monitor at all times.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |