Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to call a simple perl script in procmail.

 
jing hu
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now I want to process some email automatically.
So I use fetchmail to fetch mail per second. And use procmail to filter some email message.
My procmail configuration procmailrc is like below

I want to call perlout to create a new file test.cpp
the source code perlout is below

I use the command : fetchmail -akv -m "/usr/bin/procmail -d %T" to call fetchmail and call the procmail.
ButI find the perlout won't run out of my expectation.

and the procmail show that *procmail: Error while writing to "/home/max/perlout
so I think the perl script are not called.
I am sure the perlout path is correct.
Any comments will be welcome.
Thanks in advance.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18276
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you marked the Perl script as executable?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic