procmail
[Top] [All Lists]

Re: killing stdout in a recipe

2000-05-18 07:32:02
Lee Howard <faxguy(_at_)server(_dot_)deanox(_dot_)com> writes:
okay, okay, procmail is a filter, but its usefulness as a mail-initiated
script-trigger is quite apparent.  Unfortunately, the action | in a recipe
can be frustrating when you don't want any stdin for the action.

Is there a way to eliminate it?

Well, if the program(s) invoked in the action doesn't read the input,
you'll need to place the 'i' flag on the recipe to tell program to
ignore the write errors it'll get.  That takes care of the procmail side
of the problem.

Now, if the action is capable of ignoring its stdin, the above will be
enough.  If you can't set to the program to not read the (unwanted)
input, then stick a "</dev/null" at the start of the recipe and redirect
its input.


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>