I'm interested in open-source Java/C/C++ framework for pipes-and-filters (like described in that book) paradigm.
Can you recommend some?
EDIT: I'm looking for as much "pure" (or lightweight) frameworks as possible: frameworks which encourage programming in "pipes-and-filters" technique, without reliance on any standards, such as XML or ...
I am writing an eclipse plug-in which will operate in a mode in which it will need to send "commands" to another C program. The C program has a built-in poller which checks for events. The plug-in will "push" commands out but doesn't need anything in response. What's the easiest way to set up a communication mechanism between these two? ...
I fetched the tweets from twitter api using yahoo pipes.
Now, twitter gives the time in this format "Thu May 27 19:56:21 +0000 2010".
I want to know how many minutes have past since "Thu May 27 19:56:21 +0000 2010".
How, can i format "Thu May 27 19:56:21 +0000 2010" in order to get the minutes past?? in other words, i want to subract "no...
Hi!
I've written two programs: the first, the "writer", creates a FIFO and writes data into it. The second one, the "reader" runs in background and looks for data in the FIFO. Once data is there, the reader reads it out.
If I start e.g. two writers and two readers, they all can write/read into/from the same FIFO. How can I restrict it ...
cut -d" " -f2 ${2} | $callsTo
hello, can somebody please explain can I pipe the result of cut to variable callsTo, and how will it be stored, as the string or list?
...
I'm trying to debug a bash script that involves a command of the form:
VAR=$(cmd1|cmd2|cmd3)
I can debug it in bashdb, using the s command, which does something like this:
bashdb(2): s
2: VAR=$(cmd1|cmd2|cmd3)
cmd1
bashdb(3): s
2: VAR=$(cmd1|cmd2|cmd3)
cmd2
i.e. it allows me to run the commands in the pipe one by one. Log...
I need to launch two external programs in my program and connect the STDOUT of the first one to the STDIN of the second program. How can you achieve this in Delphi (RAD Studio 2009, if it matters)? I'm operating in Windows environment.
As a commandline command my situation would look something like this:
dumpdata.exe | encrypt.exe "my...
Hi,
Why does the following not work?
exec 3<|cat $0
The idea is to get file-descriptor (3) of a pipe (| cat $0).
...
Is there a way to easily create Java Input/Output streams for unnamed pipes created in native code?
Motivation: I need my own implementation of the Process class. The native code spawns me a new process with subprocess' IO streams redirected to unnamed pipes.
Problem: The file descriptors for correct ends of those pipes make their way ...
I have a perl script that is run with a command like this:
/path/to/binary/executable | /path/to/perl/script.pl
The script does useful things to the output for the binary file, then exits once STDIN runs out (<> returns undef). This is all well and good, except if the binary exits with a non-zero code. From the script's POV, it thin...
Hole thing is happening on the mac os x.
Let's assume that I've opened an program by clicking on an .app icon. It's a python program with GUI which has a separate process that waits for a user input. But as I've opened it by clickin .app icon I dont have access to it's input as I would have if I opened it in Terminal.
And the question ...
Consider something like:
cat file | command > file
Is this good practice? Could this overwrite the input file as the same time as we are reading it, or is it always read first in memory then piped to second command?
Obviously I can use temp files as intermediary step, but I'm just wondering..
t=$(mktemp)
cat file | command > ${t} &&...
Hello, it's not the first time I'm having this problem and its really bugging me.
Whenever I open a pipe using the Python subprocess module, I can only communicate with it once, as the documentation specifies: Read data from stdout and stderr, until end-of-file is reached
proc = sub.Popen("psql -h darwin -d main_db".split(),stdin=sub.PI...
How can I do dataflow (pipes and filters, stream processing, flow based) in C? And not with UNIX pipes.
I recently came across stream.py.
Streams are iterables with a pipelining mechanism to enable data-flow programming and easy parallelization.
The idea is to take the output of a function that turns an iterable into another it...
Hello, I'm trying to start a text editor (nano) from inside Python, have the user enter text, and then capture the text once they writeout (Control-O). I haven't worked with the subprocess module before, nor pipes, so I don't know what to try next.
So far I have this code:
a = subprocess.Popen('nano', stdout=subprocess.PIPE, shell=True...
Hello everyone,
I have several process in my system that need to communicate with each other.
Some of the processes need to pass chunks of data 60 times per second continuously,
and some are very sporadic.
Most of the processes are in C#, one is C++.
All running on the same windows 7 machine.
Right now each process has it's own diff...
My question is related to "Turn off buffering in pipe" albeit concerning Windows rather than Unix.
I'm writing a Make clone and to stop parallel processes from thrashing each others' console output I've redirected the output to pipes (as described in here) on which I can do any filtering I want. Unfortunately long-running processes now ...
So I have an app on 1 pc creating a pipe, local pipe. I want to take it as a stream (like only last data in it or incoming data from it) and stream its data thru\over NAT (using nat traversal) to other pc somewhere ower NAT (so neather I or He has uniqe IP adress but we use nat traversal server\programm to comunicate) and there recive th...
Ive tried the following, but it still waits for the program to finish executing
lnx>someprogram | sed -n '1,10p'
Maybe a pipe may not be the correct way to go about this. Any feedback would be appreciated!
Regards,
Puji
...
Hi,
I created two pipe to redirect child process stdin and stdout to parent process as given in
http://msdn.microsoft.com/en-us/library/ms682499%28VS.85%29.aspx
The child process is an exe file.
when executed using console it first returns a warning on STDOUT and then asks for a yes/no input from STDIN.
when i am running the child proce...