How can I correctly do something which doesn't assign a value to a
variable or doesn't output a message to procmail?
Example (shortened):
:0
* condition
{
:0
DATE=|date
#DATE=`date`
:0
`echo "$DATE|$MATCH|$FROM|$SMS" >> $MATCH.log`
}
This produces the desired result (get the date and log it together with
other data to a logfile), but I see errors in the procmail VERBOSE log.
procmail: Executing "echo "$DATE|$MATCH|$FROM|$SMS" >> $MATCH.log"
procmail: Assigning "LASTFOLDER="
procmail: Opening ""
procmail: Error while writing to ""
What's the correct way to do this?
Also, why does the commented line with backticks not work? I've seen
several examples assigning program output like this, but it doesn't work
for me. Instead I get the message filed to a folder of that name, f.i.
"DATE=Tue".
Kai
--
Kai Sch\xE4tzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com
IE-Center: http://ie5.de & http://msie.winware.org
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail