Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^5: Private temporal files on Windows

by salva (Canon)
on Dec 20, 2014 at 08:57 UTC ( #1110905=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1110905]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2022-05-16 09:39 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (62 votes). Check out past polls.