The Growl package (download) includes a utility called growlnotify, which can be used to display notifications using the command-line. I use the following bash script (growlexec) to run a specified command and display a notification when done:
#!/bin/bash
$*
if [ $? -eq 0 ]
then /usr/local/bin/growlnotify -m "\"$*\" done (SUCCESS)"
else /usr/local/bin/growlnotify -m "\"$*\" done (FAILED)"
fi
Here is a screen-shot of growlexec causing a Growl notification to be displayed after a successful nmap run:
Nitesh Dhanjani is a well known security researcher, author, and speaker. Dhanjani has been invited to talk at various information security events such as the Black Hat Briefings, RSA, Hack in the Box, Microsoft Blue Hat, and OSCON.
oreillynet.com Copyright © 2006 O'Reilly Media, Inc.