procmail
[Top] [All Lists]

Re: How do I execute a program from within a recipe, and from outside a recipe?

2007-01-31 06:38:34
Hello Glen,

a little bit late, but you have gotten no answer tot it...

Am 2007-01-09 14:25:30, schrieb Glen Lee Edwards:
How do I tell procmail to execute the following line so that the output of 
the 
perl script is evaluated instead of its exit code?  It converts a text file 
with email addresses, one per line, into (email1|email2|email3) format.

* $ `perl -ne 'END {chop $me; print "($me)"} chomp; $me .= "$_|"; '  \
      $MYADDRESSES`

How do I execute this command as a stand alone command (not from within a 
recipe)?

Use:

RETVAL=`perl -ne 'END {chop $me; print "($me)"} chomp; $me .= "$_|"; ' 
$MYADDRESSES`

Greetings
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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