Thread: shell scripting
View Single Post
Old 05-23-2002, 06:51 AM   #2
Yui Unifex
Senior Member
 
Join Date: Apr 2002
Location: Florida
Posts: 323
Yui Unifex is on a distinguished road
Send a message via ICQ to Yui Unifex Send a message via AIM to Yui Unifex
Question

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 =).
Yui Unifex is offline   Reply With Quote