Writing a Program that Utilises Pipes in Linux
Posted: Wed Dec 20, 2006 8:01 am
Hi,
I need to write a program for linux in c++ that pipes data to another application, basically I want to be able to do the following on the command line:
The other program does not support reading files directly but it does have an --stdin parameter. I just need to know how I can send data to the other side of a pipe like above from within a c++ app.
Does myapp's stdout automatically get piped to the other programs stdin?
Cheers.
I need to write a program for linux in c++ that pipes data to another application, basically I want to be able to do the following on the command line:
Code: Select all
<my app> <parameters> | <other program> <parameters>
Does myapp's stdout automatically get piped to the other programs stdin?
Cheers.