procmail
[Top] [All Lists]

Using shell commands in procmail

1995-11-30 21:02:43
What I have been trying to do is sned someone a selected bit of information
froma a file based upon a grep.  I have set up a working fileserver, and was
trying to work from that.

I have tried several variants on the following, with no luck.

A = "$MATCH"
grep $A filename > tmp
|cat - ./tmp 2>&1 | $SENDMAIL -oi -t
rm tmp

The logfile show procmail skipping the grep statement and the rm statement.  
How should I being these statements so that they are accepted?  

Thanks.
--

Bill McClatchie 
wmcclatc(_at_)nox(_dot_)cs(_dot_)du(_dot_)edu   
http://nox.cs.du.edu:8001/~wmcclatc

<Prev in Thread] Current Thread [Next in Thread>
  • Using shell commands in procmail, Bill McClatchie <=