MYDATE=`date '+%d%m%Y%H%M%S'`
Not bad, but how do we make sure that the file named by $MYDATE
isn't overwritten by another process executing this script within
the same second in time?
Also put the process ID $$ into the filename.
Alternatively, decent implementations of date (eg GNU) give you the
nanoseconds, which is another 9 digits.
MYDATE=`date '+%Y%m%dT%H%M%S.%N'`
Which gives 20050119T141319.769668000
Volker
--
Volker Kuhlmann is possibly list0570 with the domain in header
http://volker.dnsalias.net/ Please do not CC list postings to me.
____________________________________________________________
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