Help save net neutrality! Learn more.
Close

'File Status Auto-Detection' not working

2013-09-17
2013-09-22
  • Cleber Baldan Junior

    Hello.

    I´m using N++ 6.4.2 (UNICODE) on Windows7 x64, and I'm trying to use it to
    monitor a log file.
    I have all 3 options enabled under 'File Status Auto-Detection' in Setting

    MISC.

    This is the scenario:
    I have a PuTTy console session logging all session output to a local.log
    text file, and PuTTY is configured to 'flush log frequently', so, the
    local.log is updated very frequently.
    The local.log file is open in N++, but the console output is not displayed,
    even when there are lots of data updated.
    Once PuTTy is closed, N++ updates right away.

    I made some testing and I found that PuTTy holds the file handler of
    local.log file - Windows won't let you delete the file while PuTTy is
    running.
    So, I suspect that N++ only detects file updates if the open/monitored file
    is not 'handled' by any other process.

    Am I correct? Is there a workaround for this?

    Thanks,
    Cleber.

     
  • cchris

    cchris - 2013-09-22

    N++ only can detect what is going on on the file system. So as lon as the time stamp oes not change, the file is not supposed to change. Depending on how the writing is performed (buffered vs not), this approach is right.

    If there is any workaround, it has to be with the other app, namely PuTTY. N++ cannot mess up with foreign applications.

    CChris