procmail
[Top] [All Lists]

logical NOR

2002-11-19 05:50:13
I am having a little trouble with a logical condition based on exitcodes of two applications.

I'm trying to match an exitcode table like this:

foo.sh    bar.sh    do { }
   1         1        yes
   0         1        yes
   1         0        yes
   0         0        no

I know that this is a simple OR table.  But things like

:0
* ? (foo.sh || bar.sh)
{  do something...  }

I did find this:

:0
*? foo.sh
*? bar.sh
{  }
:0E
{  do something... }

Which does seem to work.  :)  I'm learning?

Now, here's where I keep getting really screwed up.

When do I use
:0
* foo
versus
:0
* ? foo

--
Message from Our Sponsor on ttyTV at 13:58 ...


_______________________________________________
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>