[Uw-ruby] What does problem #1 (4) mean?
Ryan Davis
ryand-uwruby at zenspider.com
Tue Nov 13 11:48:39 PST 2007
On Nov 12, 2007, at 21:24 , Feng Tien wrote:
> Sorry, another question
>
> For the powergrep program, what is the #4 requirement?
>
> -q for quiet, just denote match via exit code?
exactly. don't print, just exit 0 if match, 1 if no match. That way an
admin can write something like a cron job to scan for outages:
*/5 * * * * powergrep -q "<title>.*My Company" http://www.example.com
|| page_me "website down"
More information about the Uw-ruby
mailing list