Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to rotate a text file

Status
Not open for further replies.

jmiturbe

Technical User
Feb 4, 2003
99
ES
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top