ipc

How does IPC generate security holes?

How does interprocess communication generate security holes? Examples appreciated. ...

Operating System Commands execution in Catalyst Controller?

How to use Operating System Commands in Catalyst Controller? For example. I want to use Perl system command in Controller .it’s not working .. Any idea? In Controller module my $cmd = "/temp/useradd.sh $username_st1 $_ $log_file &"; system ($cmd ); ...

Is it possible to use IPC inside of a IE8 Browser Helper Object?

I need to communicate with a Service using IPC from inside of a Browser Helper Object (registered with IE8). Unfortunately, all of this communication is done through an Assembly API that I have no control over. Whenever this API starts up I get the following error: ExceptionSystem.Runtime.Remoting.RemotingException: Failed to conne...

Can someone please explain to me the basic function of Intents in the Android OS?

I'm new to programming applications for the Android OS. As far as general architecture of the OS goes, I understand that processes are implemented as Linux processes and that each one is sandboxed. However, I'm utterly confused on the IPCs and syscalls (if any) used. I know that the IBinder is a form of this; parcels are sent back and f...

can a python script know that another instance of the same script is running... and then talk to it?

I'd like to prevent multiple instances of the same long-running python command-line script from running at the same time, and I'd like the new instance to be able to send data to the original instance before the new instance commits suicide. How can I do this in a cross-platform way? Specifically, I'd like to enable the following behav...

Multi-reader IPC solution?

I'm working on a framework in C++ (just for fun for now), that lets the user write plugins that use a standard API to stream data between each other. There's going to be three basic transport mechanisms for the data: files, sockets, and some kind of IPC piping system. The system is set up so that for the non-file transport, each stream...

Custom Classes Passed from Service to a UI threads via AIDL

I have a service that regularly queries a web server for new messages. The service stores the new messages in an arrayList. These messages are implemented using a custom class, storing all kinds of metadata (strings and longs). An activity then connects to this service to retrieve those messages and display them to the user. I have an ...

Efficient way to send files across processes

How to effectively send a file from my own process to a program such as Photoshop, Word, Paint. I do not want to save the whole file to disk and then open the program from the startup parameters using CreateProcess, ShellExecute, etc. Maybe the only way out is Memory Maped Files? Maybe I should look to COM, IPC, Pipes? ...

Different IPC (Inter Processor Communication) techniques

Can anyone help me list down different IPC (Inter Processor Communication) techniques ...with the Pro ,Cons in brief Pls notice its not Inter Process ...its interprocessor . ...

wget not behaving via IPC::Open3 vs bash

I'm trying to stream a file from a remote website to a local command and am running into some problems when trying to detect errors. The code looks something like this: use IPC::Open3; my @cmd = ('wget','-O','-','http://10.10.1.72/index.php');#any website will do here my ($wget_pid,$wget_in,$wget_out,$wget_err); if (!($wget_pid = o...

named pipes in java

Hi all, I have written a java app which manipultes a file which is created by another program. i want my program to work in real time, in order to do so, i need to read from a file while the other program is writing it. the simple solution is to keep reading from the file even when EOF has been reached in an infinite loop, but thats ver...

Perl - How to use a process Handle created in a Module in another Perl Script

Ultimately, what I want to do is to start a process in a module and parse the output in real time in another script. What I want to do : Open a process Handler (IPC) Use this attribute outside of the Module How I'm trying to do it and fail : Open the process handler Save the handler in a module's attribute Use the attribute outsid...

Design Decision - Scaling out web based application's architecture

This question is about design decision. I am currently working on a web project that will have 40K users to start with and in couple of month expected to grow 50M users (not concurrent users though). I would like to have a architecture that can be scaled out easily without much effort. In order to explain, I would like to use a trivial ...

Portable C++ library for IPC (processes and shared memory), Boost vs ACE vs Poco?

Hi, I need a portable C++ library for doing IPC. I used fork() and SysV shared memory until now but this limits me to Linux/Unix. I found out that there are 3 major C++ libraries that offer a portable solution (including Windows and Mac OS X). I really like Boost, and would like to use it but I need processes and it seems like that this...

Why to use local pipes instead of sockets for programs communication inside one computer?

Why to use local pipes instead of sockets for programs communication inside one computer? Has Any one FRESH stats on who is faster and how nmuch, what is more sequre or less? I have found a wary old and strange and scary one... http://home.iae.nl/users/mhx/pipes&socks.html There is a noticeable difference in performance between soc...

How do I use mqueue in a c program on a Linux based system?

Hi How do I use mqueue (message queue) in a c program on a Linux based system? I'm looking for some good code examples that can show how this is done in a correct and proper way, maybe a howto. Thanks ...

Go Channels in Ruby

In the Go programming language, you can send Messages around using a construct called "Channels". http://golang.org/doc/effective_go.html#channels I would love to use something like that in Ruby, especially for IPC. Pseudocode of what I want: channel = Channel.new fork do 3.times{ channel.send("foo ") } exit! end Thread.new do ...

How to use IPC without being a local Admin?

I currently maintain an internal application in .Net. The application uses IPC to maintain one running session at a time; if another session attempt to open (Someone clicks the icon again, some opens up a saved result file), the second session communicates this to the first session and then terminates, with the first session then launch...

How to share COM objects between 2 processes?

I want Application1.exe to instantiate an instance of its Item class. I want Application2.exe to call GetPrice() on this object. I have followed steps 1-7 on the following website: http://www.codeguru.com/Cpp/COM-Tech/activex/tutorials/article.php/c5567/ This is what I have so far. Application1's main looks like this: CoInitialize( N...

Is it possible to use glib event loops for IPC?

Hello Is it possible to use glib event loops and glib io channels for IPC in one parent - many child process model? Parent and children must be able to send each other 'commands'. Can you point me to some tutorials or examples? ...