Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to check the USA's Homeland Security threat level' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to check the USA's Homeland Security threat level
Authored by: joshuajestelle on Jan 16, '04 12:35:59PM

I had trouble getting this to work as an alias under bash, so I wrote it as a shell script as follows:


#!/bin/sh

echo -n "Threat Level: "
curl -s http://www.dhs.gov/dhspublic/getAdvisoryCondition | tail -n 1 | awk -F\" '{print $2}'



[ Reply to This | # ]