in reply to non-blocking IO from open("-|")ing an external program with fcntl

I would suggest IPC::Run. Although you often need to ignore test failures when installing the module on Windows, I just tested one of my code examples (this one) on Windows and it seems to work fine.

  • Comment on Re: non-blocking IO from open("-|")ing an external program with fcntl

Replies are listed 'Best First'.
Re^2: non-blocking IO from open("-|")ing an external program with fcntl
by bliako (Abbot) on Jun 13, 2020 at 13:30 UTC

    thanks, IPC::Run looks good as it takes a callback sub to be called whenever there is output from the spawned command without blocking script flow. Which is clean solution.