Link to home
Start Free TrialLog in
Avatar of pulse2600
pulse2600

asked on

procmail - multiple pipes and perl scrtipts

I am trying to process mail through two perl scripts by calling them in a procmail recipe. The first script reads in the mail and does some editing, then the second script outputs the result to a file specified in the script. So my recipe is set up like this:

:0w
* ^Subject:*.Report.*
|/usr/local/bin/perl $HOME/script1.pl | $HOME/script2.pl

I know both scripts run correctly. I have tried using a test mbox file via command line (i.e. script1.pl testfile | script2.pl) before trying it out with procmail, and it runs without a hitch. Any guesses why this doesn't work?
ASKER CERTIFIED SOLUTION
Avatar of Alf666
Alf666

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial