procmail
[Top] [All Lists]

Re: variables

1998-02-02 20:46:42
"Filippo" == Filippo Basso <basso(_at_)cibs(_dot_)sns(_dot_)it> writes:

Filippo> but if I want that the CONTENT of the file ~/prova is
Filippo> assigned to one variable, how can i do ?

Easy:

PROVA=`cat $HOME/prova`

Note that procmail doesn't do ~ expansions, so you have to use $HOME

(Although I think this example might work with a ~, depending on the
setting of $SHELL - just be on the safe side, and don't use ~ in your
.procmailrc)

-- 
G. Geens - Home: <ggeens(_at_)iname(_dot_)com> - Work: 
<ggeens(_at_)inetgate(_dot_)capgemini(_dot_)nl>
``Don't let the sun catch you crying'' - Beck, Deadweight

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