On Sun, 21 Sep 2008, Shane wrote:
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
Logfile
procmail: Executing "date,+%y%m%d%H%M"
date: date: No such file or directory
procmail: Assigning "DATE="
Have you specified a PATH variable in your recipe somewhere, so that
procmail knows where the date cammand resides? Or specify the whole
path in your DATE assignment.
--
Public key #7BBC68D9 at | Shane Williams
http://pgp.mit.edu/ | System Admin - UT iSchool
=----------------------------------+-------------------------------
All syllogisms contain three lines | shanew(_at_)shanew(_dot_)net
Therefore this is not a syllogism | www.ischool.utexas.edu/~shanew
____________________________________________________________
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