Thank you. I got many responses but I think we will implementing a solution
along the lines of this suggestion.
>From Narendra Raavi
If the file is still open, and busy, you cannot reset the log file. We have
had this problem, but have solved it in a different way.
We get the process/program to write to a named pipe. We have another (Perl)
program that reads the pipe and writes to a log file while periodically,
switching log file extensions, based on the size of the log file.
Hello,
I am trying to use
cat /dev/null > a.log
to reset a log file. Unfortunately, when I do this the log file returns to
it's original size the next time that the application writing to that log
makes an update. How can I reset a log that is being written to by a
program without stopping the program?
Thank you,
Mark Myszkowski
Received on Thu Nov 08 2001 - 16:14:18 NZDT