in reply to capturing program output

$output = `some command-line program`; if ($output =~ /looking for this/) { .. do this }

-- Randal L. Schwartz, Perl hacker