Menu

#242 coreutils 5.3.0 tail -f bad file descriptor

CoreUtils
open
GnuWin
Binaries (396)
5
2015-05-14
2005-04-25
Anonymous
No

The newer coreutils 5.3.0 tail -f does not follow files the
way the older textutils 2.1 tail -f used to. See below:
newer tail1.exe exits with an error, where older tail.exe
waits for file to grow (I hit CTRL-C to get the prompt
back).

D:> tail1 --version
tail (GNU coreutils) 5.3.0
Written by Paul Rubin, David MacKenzie, Ian Lance
Taylor, and Jim Meyering.

Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying
conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.

D:> tail --version
tail (textutils) 2.1
Written by Paul Rubin, David MacKenzie, Ian Lance
Taylor, and Jim Meyering.

Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying
conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.

D:> tail1 -f status.txt
8662667550 - asset acceptance
8662667551 - all circuits busy
8662667552 - all circuits busy
8662667553 - all circuits busy
8662667554 - all circuits busy
8662667555 - conference calling center
8662667556 - American Express Phone Card
8662667557 - Ruby's Diner
8662667558 - conference calling center
8662667559 - not available from your calling area
tail1: status.txt: Bad file descriptor
tail1: no files remaining

D:> tail -f status.txt
8662667550 - asset acceptance
8662667551 - all circuits busy
8662667552 - all circuits busy
8662667553 - all circuits busy
8662667554 - all circuits busy
8662667555 - conference calling center
8662667556 - American Express Phone Card
8662667557 - Ruby's Diner
8662667558 - conference calling center
8662667559 - not available from your calling area
^C
D:>

Thanks,
Robert Bassett

Discussion

  • rmccullough

    rmccullough - 2006-01-05

    Logged In: YES
    user_id=1152063

    It would be nice if we could get this fixed.

     
  • alexanderv

    alexanderv - 2006-04-04

    Logged In: YES
    user_id=1130941

    The tail -f command from http://unxutils.sourceforge.net/'s
    update package works.

     
  • Nobody/Anonymous

    Logged In: NO

    A workaround is to use tail -F <filename>

    This seemed to work (kind of ugly though)

     
  • Anonymous

    Anonymous - 2014-03-20

    Hi, the command returns immediately to the prompt instead of following the file changes.

    Will this issue be fixed and if so when ?

     

    Last edit: Anonymous 2018-10-12
  • Anonymous

    Anonymous - 2015-03-02

    +1 for fixing this please. "tail -f" was the whole reason I installed tail in the first place.

    Error (tail empty file "file.log")

    tail -f file.log
    tail: file.log: Bad file descriptor
    tail: no files remaining

    tail version:

    tail --version
    tail (GNU coreutils) 5.3.0
    Written by Paul Rubin, David MacKenzie, Ian Lance Taylor, and Jim Meyering.

    OS

    Windows 7

     

    Last edit: Anonymous 2018-10-12
  • Eric Reynolds

    Eric Reynolds - 2015-04-30

    +1

    I have exactly the same setup as Anonymous/2015-03-02

    Would be really good if this was fixed

     
  • Anonymous

    Anonymous - 2015-05-14

    +1 - I just installed GnuWin purely for "tail -f" functionality, and it doesn't even work. Please fix this issue.

    Could the original author post their sweet wardialer scripts?

     

    Last edit: Anonymous 2018-10-12