procmail
[Top] [All Lists]

Re: Procmail grammar problem

2002-05-28 12:39:50
[Will someone in charge please remove 
jkajiba(_at_)esrf(_dot_)esrf(_dot_)or(_dot_)tz from this list?
Kajiba is not only autoreplying  to every post, (s)he is also using
procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de as the From: address of the 
autoresponses.]

Marek followed up,

| I have another question:
| How set the value of procmail variable comming from the outpu of the
| action ex.
|
| :0 iw:
| TESTER=|./tester

You don't need a local lockfile there.

| where
|
| tester
| --------------
| #!/bin/bash
| echo 1;

| does not work.
| In log I can see :
|
| procmail: Locking "tester.lock"
| procmail: Assigning "TESTER="
| procmail: Executing "./tester"

That's how it should be.  Try this:

VERBOSE=on
:0iw
TESTER=|./tester
VERBOSE=off

LOG="The value of TESTER is $TESTER.
" # closing quote should be on new line

and you should see that it is 1.

Is the problem that the log says "Assigning TESTER=" and not "Assigning
TESTER=1"?  At that point, procmail hasn't run ./tester yet, so it doesn't
know what the standard output will be.



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