# file: Mailq_Check.pl open STDOUT, ">mailq_check.log"; system "mailq | grep frozen"; close STDOUT; exec `perl mail_report.pl mailq_check.log`;