in reply to Re^4: Private temporal files on Windows
in thread Private temporal files on Windows

Anyway, I still have to check that the file handle survives the full chain of program calls (perl -> sshg3 -> cmd -> helper)

It doesn't, the file handle is not inherited by sshg3 children.

Replies are listed 'Best First'.
Re^6: Private temporal files on Windows
by Corion (Patriarch) on Dec 20, 2014 at 09:11 UTC

    You could try to use the technique from FDPasser to pass the filehandle as a string in %ENV to the helper process... But then I guess you could pass the information via %ENV already :-/

      Well, that led me into using OpenProcess+DuplicateHandler to get the handler from the perl process into the helper and it works!

      On the other hand, how secure is that? I guess only processes from the same user would be able to reopen handlers.

      I will post a link to the code once I clean it.