Re: Working sms time check?

"@lbutlr" <[email protected]> Thu, 2 Jun 2016 15:47:27 -0600
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
On Jun 2, 2016, at 3:18 PM, @lbutlr <[email protected]> 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/
[email protected]
http://mailman.rwth-aachen.de/mailman/listinfo/procmail