On Fri, 15-Nov-2002, at 06:59:27 -0700, Tom Allison wrote:
I have a perl script which specifically calls "exit 75;"
I know it's doing this.
There is also an END{ } to this same script, so I guess that gets
executed too.
But every time, procmail says EXITCODE = 0
I got this to work once by setting X-Headers and looking for them
because I was _never_ able to get any exitcode stuff to work > correctly.
Event this fails:
:0f
| foo.pl
EXITCODE = $=
On Fri 15-Nov-2002 at 06:59:27 -0700, Tom Allison said:
1) Don't use the variable 'EXITCODE' unless you want to affect the
exit
status of procmail itself.
2) The exit status of the last program executed by procmail is found
in
$?. $= is the score of the last recipe.
so
MYEXIT = $?
--
Far away, across the fields, the tolling of the iron bell calls the
faithful to their knees to hear the softly spoken magic spells.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail