procmail
[Top] [All Lists]

Checking the exitcode of a program

2001-01-21 11:56:50
Hi. Is it possible to do different things depending on the exitcode of a 
program? like, if it's 0 do something, if 1 something else, and if 100 
another?

It has to do with the vpopmail and quotas problem i mentioned in an earlier 
posting, the program is the vpopmail delivery agent, it returns 0 on success, 
and 100 on failure, outputting to stdout a better description, so i can make 
a little wrapper script that returns something depending on the case, but how 
can i process the response from procmail? i can exit with an exitcode 
depending on each case, but how can procmail process that?

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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