That's right. -e tests for existance.
problem we're having is that we never get the log file in gzip form if an old one is present, it just keeps getting overwritten.[/quote]
That's because the code that gzips the file is commented out! Immediately afterwards, it checks if the gzipped file exists, and if it doesn't, it stops before it increments the index count -- that's why it overwrites the file afterwards.
Simply remove the two "#" comments at the front of the line, and you should be fine =).
|