Shell script for terror alert...
from MacOSXhints.com... "A script to check the USA's Homeland Security threat level":
Here's a one-line shell command to get the current threat level from the Department of Homeland Security:
alias hstl 'echo -n "Threat Level: ";'" curl -s http://www.dhs.gov/dhspublic/getAdvisoryCondition | tail -n 1 | awk -F\"'"'" '{ print "\$2" }'"
NOTE: Enter the above as one long line with a space before http and tail; broken up here for easier readability.
Example:macosx % hstl Threat Level: HIGH
Posted by joebeone at Enero 16, 2004 11:33 AM