Hi Siemen, You may want to check the pipe support code in OSSubprocess [1]. Note that the pipes should work outside of OSSubprocess. You can read the documentation as well as the unit tests for the pipes. Cheers, [1] https://github.com/marianopeck/OSSubprocess On Sat, May 5, 2018 at 8:29 AM, Siemen Baader <siemenbaader@gmail.com> wrote:
Hi,
I'd like to use an external tool to edit HTML code and then store and version it in my Pharo image. I'd like to create a named pipe that the external application will save to, and then have Pharo watch for whenever the named pipe is written to and then execute code to handle the data from there.
But I can't find any place to register a callback on FileReference and similar classes that will notify Pharo when the named pipe is changed, and when the external editor will read from it. Is there any support for this?
I know there are workarounds like polling or reading the file when it is used, but I'd prefer to wire things together directly and avoid duplicating the data if possible.
thanks, Siemen
-- Mariano http://marianopeck.wordpress.com