<?xml version="1.0" encoding="windows-1252"?>
<node id="129772" title="Re: How do I whack the output of the shell command" created="2001-12-05 20:54:52" updated="2005-08-13 21:10:50">
<type id="11">
note</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
Open a pipe to mail and send to output of mailq to it.
&lt;CODE&gt;
$output = `mailq | grep frozen`;
if ($output) {
  open(MAIL, "| mail -s sstock\@essex+.ac.uk");
  print MAIL $output;
  close(MAIL);
}
&lt;/CODE&gt;

</field>
<field name="root_node">
23159</field>
<field name="parent_node">
23159</field>
<field name="reputation">
2</field>
</data>
</node>
