in reply to How do I whack the output of the shell command "exim -bp" into an array?
Open a pipe to mail and send to output of mailq to it.
$output = `mailq | grep frozen`; if ($output) { open(MAIL, "| mail -s sstock\@essex+.ac.uk"); print MAIL $output; close(MAIL); }
|
---|
In Section
Seekers of Perl Wisdom