On 10/23/07, mano M <[EMAIL PROTECTED]> wrote:

>   I have a C program that reads from stdin  and process some calculation. I 
> need to write another sample program that send the data into stdin . My 
> Cprogram should read this data from stdin. This should work like sequential 
> job(1 program send the data to stdin and 2nd program reads data from stdin 
> and process) This is a part of simulation of a job. I have the 2nd program 
> .How can I simulate it.  How can I execute it.(is it possible using pipe)

Yes, using a pipe on the command-line is the canonical way of doing this.

prog1 | prog2

Just about any OS with a command-line supports this. What's the problem?

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to