On Fri, Dec 13, 2002 at 03:45:45PM -0800, ricardo(_at_)americasnet(_dot_)com
wrote:
Is it too cumbersome to have multiple "echo" sections? What I mean is, I
might want to place an echo in each action block, to report to the
calling program.
What about simply setting a variable to whatever information to be
reported, then at the end of the recipe do a single `echo` of the
variable content?
If the report is supposed to cause action to be taken, you could use
shell redirection to send the report to a named pipe which something
else was watching. The down side would be that if the watcher died,
procmail would stall.
What about redirecting the echo to a file that's got a `tail -f` running
on it to feed reports to the calling program? Heck, if that will work,
there's no need for the redirection -- you can just tail your LOGFILE,
and only take action on reports you recognize as your own.
The more I think about this, the less elegant it all seems. ;-)
--
Paul Chvostek
<paul(_at_)it(_dot_)ca>
Operations / Abuse / Whatever +1 416 598-0000
it.canada - hosting and development http://www.it.ca/
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail