procmail
[Top] [All Lists]

Re: getting the exit code from a php script

2006-09-19 13:13:45
On Tue, 19 Sep 2006, Matthias Haeker wrote:

MH> Dear Procmailer
MH> 
MH> i try to run a php script from procmail to update some fields in a MySQL 
MH> database.
MH> 
MH> 
MH> for this i use a recipe like :
MH> 
MH> :0 
MH> *  ? php  /script.php \
MH> $X_FIELD1   $X_FIELD2  
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.

-- 
Alan


( 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. )


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>