in reply to capturing program output
$output = `some command-line program`; if ($output =~ /looking for this/) { .. do this } [download]
-- Randal L. Schwartz, Perl hacker