procmail
[Top] [All Lists]

Re: Working sms time check?

2016-06-02 17:59:55
On Jun 2, 2016, at 3:47 PM, @lbutlr <kremels(_at_)kreme(_dot_)com> wrote:

SMS_TIME=`/usr/bin/find $MAILDIR -mtime +24h -maxdepth 1 -name .SMS_$LISTNAME 
| /usr/bin/sed 's/^.......//'`
 SMS_TIME=`/usr/bin/find $MAILDIR -mtime +24h -maxdepth 1 -name 
.SMS_$LISTNAME`
 SMS_TIME=`echo $SMS_TIME | /usr/bin/sed 's/^.......//'`

This works:

SMS_TIME=`/usr/bin/find $MAILDIR -mtime +24h -maxdepth 1 -name .SMS_$LISTNAME`
SMS_TIME=`basename $SMS_TIME`

-- 
if you ever get that chimp off your back, if you ever find the thing
you lack, ah but you know you're only having a laugh. Oh, oh here we
go again -- until the end.


____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>