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/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail