You are correct about the "-f" following the file inode, not the filename, but regardless, tail should not have hung. It should at least have outputed the last 10 lines (by default) and then hung.
In my own scripts, I did use "--follow=name" and got the same results, and I have since tried that in your script and it made no difference.

I am trying not to hate windows, but I know on Unix, I would have been able to trace the process (truss or strace) to find out why or at least where it is hanging.

Anyway, I will contact you for that older version of the Tail.exe which seems not to have this bug (and supports "--follow=name" as "-F" though this is more an annoyance than a bug, but may point to the problematic inconsistencies in the newer version.)

Thanks once again for your assistance,
-Frd


In reply to Re^6: Tail'ing a log that frequently rolls over by frd1963
in thread Tail'ing a log that frequently rolls over by frd1963

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.