in reply to Log rotaion for the files which are existed in the absolute paths from the config files
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Log rotaion for the files which are existed in the absolute paths from the config files
by perladdict (Chaplain) on Mar 27, 2014 at 21:26 UTC |