View Single Post
  #1 (permalink)  
Old 06-21-2008, 11:49 AM
rpandey05 rpandey05 is offline
Junior Member
 
Join Date: Jun 2008
Posts: 2
Default Can't make a file empty

Hi All,

I have a log file of size 160 MB and it is continuosly increasing. To reduce it want to make it empty at certain interval. To do this I use following command

echo "" > abc.log

as an alternative I've also used :

> abc.log

After using this command, I saw that file becomes 0 KB but suddenly after 15-20 seconds I found that file has again become 160 MB in size.

Please tell me the reason for this problem, and also tell me that how can I make my log file empty.

Thanks,
Ritesh Pandey
Reply With Quote
Sponsored Links