procmail
[Top] [All Lists]

Re: Working sms time check?

2016-06-02 16:47:44
On Jun 2, 2016, at 3:18 PM, @lbutlr <kremels(_at_)kreme(_dot_)com> wrote:
Wil report back, the machine is doing a backup now.

Interesting.

  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/^.......//'`

Yields the following:

Executing "/usr/bin/find $MAILDIR -mtime +24h -maxdepth 1 -name .SMS_$LISTNAME 
| /usr/bin/sed 's/^.......//‘"

Notice the lack of expansion.

procmail: Assigning "SMS_TIME="
procmail: Executing 
"/usr/bin/find,/home/kremels/Maildir/,-mtime,+24h,-maxdepth,1,-name,.SMS_procmail"

Here we get variable expansion

procmail: Assigning "SMS_TIME="
procmail: Executing "echo $SMS_TIME | /usr/bin/sed 's/^.......//‘“

And here there is no variable expansion.

procmail: Assigning "SMS_TIME="

(It is correct that SMS_TIME is empty at this point)

-- 
'I'm just going to kick some arse dear' 'Oh, good. Just be sure you wrap
up well, then.'


____________________________________________________________
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