Hello,
We are redirecting the standard output of an application to a text file. We would like to rotate this "log" file.
Actually we copy the file content to another file and then execute a cat /dev/null >> NAME_OF_THE_LOG_FILE
The problem is that the application dosn't "start" writing on the first line. It continues writing after the last line number wroten before the execution of cat /dev/null.
Any ideas on how to solve this issue.
Thanks in advance,
Joseba M. Iturbe
We are redirecting the standard output of an application to a text file. We would like to rotate this "log" file.
Actually we copy the file content to another file and then execute a cat /dev/null >> NAME_OF_THE_LOG_FILE
The problem is that the application dosn't "start" writing on the first line. It continues writing after the last line number wroten before the execution of cat /dev/null.
Any ideas on how to solve this issue.
Thanks in advance,
Joseba M. Iturbe