procmail
[Top] [All Lists]

Re: Procmail Newbie: variables and scripts

1999-11-30 01:54:58
On Tue, 30 Nov 1999 01:46:34 -0500 (EST), Mike Karlesky
<karleskm(_at_)river(_dot_)it(_dot_)gvsu(_dot_)edu> wrote:
The uncommented action line does not. Could someone please tell me why?
:0w:
| /home/messages/email.pl $(TO) $(FROM) $(SUBJECT)
#| (/bin/echo $TO > /home/messages/test; /bin/echo $FROM >> 
/home/messages/test; /bin/echo $SUBJECT >> /home/messages/test)

Because $(VAR) is not a valid variable name. You want ${VAR} with
curly brackets, or just $VAR

/* era */

-- 
 Too much to say to fit into this .signature anyway: <http://www.iki.fi/era/>
  Fight spam in Europe: <http://www.euro.cauce.org/> * Sign the EU petition

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