WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Tail -F && tail - f

Open nindogo opened this issue 8 years ago • 9 comments

I am running WSL - and I love it.

This may be a low level issue but ....

Running Debian on Windows 10.

C:\Users\hp>ver
Microsoft Windows [Version 10.0.17134.48]

I can not get tail -f or tail -F to follow the logs for qBittorrent. It shows the last 10 lines - but it does not follow the log as it is growing - or files as they change.

Tried it against aptitude's log and that works fine. Is it an issue of populating a log file in windows and "reading" it in WSL?

Thanks. nindogo

nindogo avatar Jun 12 '18 09:06 nindogo

[Version 10.0.17134.48]

#925. Try April Update with Ubuntu 18.04 from the Store, or upgrade coreutils yourself per this.

therealkenc avatar Jun 12 '18 11:06 therealkenc

I'm having the same exact issue here! upgrading with core-utils didn't work for me :( @therealkenc

neoadventist avatar Jul 13 '18 08:07 neoadventist

I'm having the same exact issue here! upgrading with core-utils didn't work for me :( @therealkenc

According to this thread, pass the ---disable-inotify will solve the problem, I am using 18.04 which should have contain the patch @therealkenc mentioned

simsicon avatar Jan 11 '19 08:01 simsicon

Also having this problem. It's supposed to be fixed but clearly there is a regression. Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic

Windows 10, 1809 OS Build 17763.195 Microsoft Windows [Version 10.0.17763.195]

tail -f does not follow when the file is written/updated from Windows This is (I would think) a core scenario that should work. ---disable-inotify as a work-around does work but shouldn't be required

jhorriga avatar Jan 18 '19 00:01 jhorriga

Same issue. tail -f not picking up file writes via (assuming) windows calls.

ericnewton76 avatar Mar 07 '19 19:03 ericnewton76

I Had meet the same issue

ilxj avatar Sep 03 '19 09:09 ilxj

I am using Ubuntu 18.04 WSL 1 If file is located on Linux partition, tail -f works fine.

But if you are monitoring file located on NTFS, e.g.: tail -f /mnt/c/path/to/file ---disable-inotify works.

arnisjuraga avatar Apr 02 '20 06:04 arnisjuraga

Seems like this is still a problem. Using ---disable-inotify does the trick, but I would say that tail -f on wsl should just work out of the box without having to specify any extra flags. I see that this issue was marked as a duplicate of #925, but that issue was also closed (and this issue is still present).

Should this be relooked into?

sdalmeida avatar Apr 29 '21 01:04 sdalmeida

Over in the dupe target

therealkenc avatar Apr 29 '21 17:04 therealkenc