Hi,
I was thinking about implementing piping and redirection in some of my programs.

But I'm having difficilties getting started.
Does anyone know were to read up on this area,
or just what to google.

Google only gives my tutorials on basic unix commandline usage.

thanks in advance

What type of programs are you talking about? Give an example of what you want to do.

Well for windows the procedure would be:
Server

CreateNamedPipe(),
ConnectNamedPipe(),
ReadFile(pipe handle),
flush buffers, disconnect

Client

CreateFile(with pipe's name),
WriteFile()
CloseHandle()

I'm using linux.
But thanks.

I have programs that works on textfiles,
these does parsing and conversion.

instead of writing

./myprog afile.txt

I would like to able to do

cat afile.txt|./myprog
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.