On 30/05/16 21:07, Ruud H.G. van Tol wrote:
On 2016-05-30 19:51, @lbutlr wrote:
SMS_TIME=`find . -mtime -24h .sms_$LISTNAME`
-maxdepth 0
:0
* LISTNAME ?? ^^procmail^^
{
:0
* SMS_TIME ?? ^^$LISTNAME^^
I would expect something like:
^[.]/[.]sms_$LISTNAME^
Some modern find(1) know to work with printf. Play with:
find . ..... -printf "%P %p %f %h\n"
see the usable %'s you like.
But, I dont like using find(1) in procamilrc because you do one more fork
to heavy program. If I fork I try to use the cheaper commands.
So, What I will do instead of your touch .SMS_$LISTNAME
touch .SMS_$LISTNAME_`date '+%u_%P'`
%u is the day in the week. If it is different from the %u in
current day you know
you passed 24 hours. I this way you use the MATCH mechanism.
--udi
-- Ruud
____________________________________________________________
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
____________________________________________________________
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