Am 2008-09-21 12:45:50, schrieb Shane:
Hiya,
I would like to date time stamp ammendments to a file.
The problem is getting the time stamp into the variable DATE.
As the logfile shows, `date' is executed, and then ? goes looking for
some sort of file etc.
Thanks in advance for your thoughts.
Shane
DATE=`date +%y%m%d%H%M`
:0H:
*^FROM:.*857
| echo "857 $DATE >> /home/857.txt
If I run:
DATE=`date "+%Y%m%d%H%M"`
:0
* ^FROM:.*857
{ echo "857 ${DATE}" >> /home/857.txt }
it works perfectly.
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
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
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/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