2011/4/8 Harsimranjit singh Kler <simran...@gmail.com>: > Whenever i am deleting log files(catalina,localhost etc log files) from > tomcat_home\logs path.These are not auto genrating .Everytime i need to > restart tomcat to get thise files i dont want this.Any solution to this?
That is how unixes work. See "man unlink" e.g. here [1] or the POSIX spec. The actual deletion happens only when all applications that are reading or writing the file have closed it. [1] http://linux.die.net/man/2/unlink You can truncate the file though, without deleting it. I think the following will work: cat /dev/null > yourfile Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org