23.03.2011, 10:01
Quote:
NotE:
if you remove server_log.txt while the server is running...it will not automatcially recreate it. You must stop the server run the log rotation scrpt restart the server |
Step 1: Copy the log contents to a new file with "cat server_log > otherlog/today.txt"
Step 2: Overwrite the server_log stream with null data by using "echo > server_log.txt" - this will blank the log file and server will continue appending new data to it.
This is tested and works fine on linux.