in reply to Strange memory leak question. Please help!
I decided to do a work-around, whereby I would process files until some reliable event occurred (e.g. changing directory, because there were never too many files in a single folder), write a "checkpoint" file to indicate how far I had gotten in the overall list, and exit. On start-up, the script would read the checkpoint file to figure out which directory to do next. Then it was just a matter of putting the script in a shell loop, running it enough times to cover the whole set.
In your case:
Either way, most of your trouble comes from trying to do too much in one huge monolithic script. Break it down into simpler components -- that's likely to improve performance in a lot of ways, and will make it easier to maintain; it's a win-win approach.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Busted: Strange memory leak question. Please help!
by catsophie (Initiate) on Sep 22, 2007 at 05:19 UTC | |
by sfink (Deacon) on Sep 22, 2007 at 16:10 UTC | |
by catsophie (Initiate) on Sep 24, 2007 at 05:27 UTC |