Code Monkey home page Code Monkey logo

Comments (6)

fdellwing avatar fdellwing commented on June 3, 2024 1

I had some problems in getting --follow=name to work. The --retry part I had already, but I switched to a few other flags. So if you have a good idea how to solve that part, go for it.

See here: fdellwing@a28ae5f

from serenity.

fdellwing avatar fdellwing commented on June 3, 2024

Our FileWatcher does currently not register a truncate. Imho a truncate should trigger a ContentModified event, but it does not. How are we notifying the FileWatcher about a new event currently?

Also the -F flag has nothing to do with truncation in GNU (coreutils). It changes the follow mode from fd based to name based. So if the file is moved away, tries to reopen the file (-> logrotate). Truncation is supported in normal -f mode.

from serenity.

fdellwing avatar fdellwing commented on June 3, 2024

I have solved the truncation part.

I'll now look into implementing --retry and --follow=name (which are both combined in -F).

from serenity.

tbhaxor avatar tbhaxor commented on June 3, 2024

@fdellwing Are you still working on this or can I take this issue?

from serenity.

tbhaxor avatar tbhaxor commented on June 3, 2024

--follow=name

Aren't we taking the file name from the positional arg?

It is mode of following. Got it

from serenity.

fdellwing avatar fdellwing commented on June 3, 2024

It is mode of following. Got it

Yes. It is used in -F to actually keep following a file by name if the original opened file is moved away. By default we keep following the original file as we use the fd.

from serenity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.