Re: Working sms time check?
"Ruud H.G. van Tol" <[email protected]> Thu, 2 Jun 2016 08:30:12 +0200
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <[email protected]> |
On 2016-06-02 07:31, @lbutlr wrote: > The issue is that the find does not fill the variable. > > SMS_TIME=`/usr/bin/find . -mtime +24h -maxdepth 1 -name .SMS_$LISTNAME | /usr/bin/sed 's/^.......//‘` > > ALWAYS ends up with an empty SMS_TIME regardless of the time stamp on the file. 1. Use an absolute path, instead of the dot. 2. What are the 7 characters that the sed-command is supposed to remove? Just put them in the command. 3. There is a weird closing-quote at the end of the sed parameter. 4. Log every step, while testing. -- Ruud ____________________________________________________________ procmail mailing list Procmail homepage: http://www.procmail.org/ [email protected] http://mailman.rwth-aachen.de/mailman/listinfo/procmail