Specifically,
In OSX 10.6 from a system call, I want to open a file for editing with VIM in a preexisting terminal (i.e. Terminal.app) by opening a new tab.
Of course I can open a new instance of terminal
/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal -e vim MyFile
And, of course I can figure out the PID of the runnin...
I have multiple instances of the same Windows Forms .net 3.5 SP1 C# application running on the same machine.
Now I'd like to be able to communicate with them from .net, one instance at a time.
What's the most simplest way to do this?
I read a bit about WCF, but I have only found examples working with one server and one client. But in ...
I had problems with imagemagik convert and unicode filenames. I then wrote a echo.bat which simply does echo %1. What came back in stdout via .NET wasnt my unicode characters. Is there some kind of character limitation? I havent tested length of characters i can pass as an argument is there a limit on that?
...
Hi,
I am using RCF for Inter Process Communication in a project. Is there a way in RCF to create a bi directional channel. I will have server and client running in both processes. I was able to get one way commmunication working with Win32NamedPipes Here is the server
int main()
{
MyServiceImpl myServiceImpl;
RCF::RcfServer serv...
I'm looking for a way to get two programs to efficiently transmit a large amount of data to each other, which needs to work on Linux and Windows, in C++. The context here is a P2P network program that acts as a node on the network and runs continuously, and other applications (which could be games hence the need for a fast solution) will...
How can I make use of the shmat(), shmdt(), shmctl(), shmget() calls from Python? Are they hidden somewhere in the standard library?
Update0
I'm after System V bindings that can be found in the Ubuntu repositories, or Python standard libraries (now or in future releases).
...
Suppose I have no network card installed on my computer, and I would like to have functionality similar to the following:
Process 1 will publish messages to some URI, say "Uri1"
var publisher = new Publisher("Uri1");
publisher.publish(new Message("Somedata");
Process 2 will both listen for messages on "Uri1" and publish messages to "...
I have an application that consists of two processes (let's call them A and B), connected to each other through Unix domain sockets. Most of the time it works fine, but some users report the following behavior:
A sends a request to B. This works. A now starts reading the reply from B.
B sends a reply to A. The corresponding write() cal...
Is semaphore an IPC mechanism?
...
For my pet project I've decided on a services based architecture (yeah the buzzword SOA) because I can scale each service independent of others, distribute them geographically where they will be used more than other services, etc.
The trick is that some of the services need to communicate privately with each other (and publicly with en...
I am trying to use a named pipe for communication within a process.
Here is the code
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
void sigint(int num)
{
int fd = open("np", O_WRONLY);
write(fd, "y", 1);
close(fd);
}
main()
{
char ch[1];
int fd;
mkfifo("np", 0666);
signal(SIGINT, sigint);
...
Hi All:
I'm wondering if I can access to a Posix Message Queue in Java as I have an application that can't be modified and uses a message queue to talk to other processes.
Is there any api or package that do that?
I know that I can use JNI but I need to do this ASAP so no time to develop that.
Regards.
...
We are still in the design-phase of our project but we are thinking of having three separate processes on an embedded Linux kernel. One of the processes with be a communications module which handles all communications to and from the device through various mediums.
The other two processes will need to be able to send/receive messages ...
Hi,
I am developing a software using C# 2.0 that has an windows application and an Outlook Add-In. For IPC, I am using Remoting with Binary formatter. Both component has a reference to a common project "Core" which contains Remoting related class definitions. My add-in is the server i.e. registers the remote object.
Now, the problem is...
I have two processes and i want to share a linked list between them. One of the
processes is just going to read the list while other process is going to modify the
list ( add/delete entries). Can you tell me how to achieve it?
Let me add more details to it the language is C and the platform is Linux.
It seems that shared memory is o...
In a program I am developing (Linux), I need very simple text-based IPC. It would be very easy to use a standard input/output pipe for this. Can I trust that messages sent to a process' stdin cannot be read by anyone? Also, can I trust that if I kept the pipe to its stdout, only I can read what it outputs? I just want to make sure there'...
I'm very new to this Parallel::ForkManager module in Perl and it has a lot of credits, so I think it support what I need and I just haven't figured out yet.
What i need to do is in each child process, it writes some updates into a global hash map, according to the key value computed in each child process. However, when I proceed to cla...
Let's say you have 2 servers each with 8 CPU cores each.
The servers each run 8 network services that each host an arbitrary number of long-lived TCP/IP client connections.
Clients send messages to the services.
The services do something based on the messages, and potentially notify N>1 of the clients of state changes.
Sure, ...
I know the answer depends on the particular JVM, but I would like to understand how it is usually implemented? Is it in terms of popen (posix)? In terms of efficiency do I need to keep something in mind (other than using a Buffered stream as suggested by the javadoc). I would be interested to know if there is a general reference about i...
Consider the following script:
use IO::File;
$| = 1;
my ($handle, $pid) = myPipe();
if ($pid == 0) {
print "$$";
sleep 5;
exit;
}
print "child: ".<$handle>."\n";
sub myPipe {
my $handle = new IO::File();
my $pid = open($handle, "-|");
return ($handle, $pid);
}
In this case, the "child:" message doesn't appear for 5 secon...