Python IPC (Inter Process Communication) for Vista UAC (User Access Control)

I am writing Filemanager in (wx) python - a lot is already working. When copying files, the execution dialog is already displayed, overwritten, etc.

Now in Vista, when the user wants to copy the file to certain directories (for example,% Program Files%), the application / script needs a promotion that cannot be set at runtime. Therefore, I need to run another application / script with an increased value that does this work, but I need to exchange data with the main application, so the latter can update progress, etc.

I searched and found many articles saying that shared memory and pipes are the easiest way. So what I'm looking for is a platform-independent high-level ipc library, bound to python using common mem or channels.

I already found ominORB, fnorb, etc. They look very interesting, but use TCP / IP, is there an equivalent library using common mem or pipes? Since the ipc client is always on the same socket computer, it does not seem to be necessary here. And I am also afraid that the user will have to allow ipc-socket communication on his personal firewall.

EDIT: I really mean a high level: it would be great to be able to just call some functions, for example, when using omniORB instead of sending strings to stdin / stdout.

+4
source share
1 answer

How to simply communicate with the second process using stdin / stdout?

There are some caveats about buffering input and output, but check out this Python cookbook recipe , as well as Pexpect , for ideas on how to do this.

+2
source

All Articles