1
Vote

continuous tail of log file is not read if the log file is deleted and then recreated

description

continuous tail of log file is not read if the log file is deleted and then recreated
 
For example, I have an application MyApp.exe that will delete(re-)create a log file at C:\log.txt.
"Tail.exe -f C:\log.txt" works as expected.
However, after MyApp.exe is complete and I run it again, C:\log.txt will get deleted because it exists, and then re-created, but the contents of the new C:\log.txt file are not displayed on the console.
 
I am not sure how the unix tail behaves in this scenario, so this could either be a bug or feature request.
 
Thank you.

comments