getting the exit code from a php script

Alan Clifford lists at
Tue Sep 19 22:05:39 CEST 2006

On Tue, 19 Sep 2006, Matthias Haeker wrote:

MH> Dear Procmailer
MH> i try to run a php script from procmail to update some fields in a MySQL 
MH> database.
MH> for this i use a recipe like :
MH> :0 
MH> *  ? php  /script.php \
MH> {

>From procmailrc:
w    Wait for the filter or program to finish and check its exitcode 
(normally ignored); if the filter is unsuccessful, then  the text will not 
have been filtered.

:0 w

is what you need I think.


( Please do not email me AS WELL as replying to the list.  Please 
  address personal email to alan+1@ as lists@ is not read. A
  password autoresponder may be invoked if this email is very old. )

More information about the procmail mailing list