[prev in list] [next in list] [prev in thread] [next in thread] 

List:       procmail
Subject:    Re: How do I execute a program from within a recipe,
From:       Michelle Konzack <linux4michelle () freenet ! de>
Date:       2007-01-31 13:25:13
Message-ID: 20070131132513.GN7611 () freenet ! de
[Download RAW message or body]

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@lists.RWTH-Aachen.DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic