G'day perladdict,
It would have helped if you'd shown (at least a sample of) what you're actually getting for $abspath. I'll have to guess.
When $path is
/opt/xxx/domains/test0813/dev/platform/log/*.log
You get a value of $abspath that looks like
/opt/xxx/domains/test0813/dev/platform/log/*.logwhatever.log
But what you really want is
/opt/xxx/domains/test0813/dev/platform/log/whatever.log
You'll need to chop of the wildcard part (i.e. *.log, in this instance) before concatenating the filename.
-- Ken
In reply to Re: Log rotaion for the files which are existed in the absolute paths from the config files
by kcott
in thread Log rotaion for the files which are existed in the absolute paths from the config files
by perladdict
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |