PDA

View Full Version : output as input



DDC
02-22-2003, 02:34 PM
Is there a way to read output from a currently running program as input to another program in C?
If so, please offer some information on this.

DDC
02-22-2003, 03:12 PM
I am using UNIX IRIX 6.5.

DDC
02-22-2003, 03:18 PM
I will try this, Thank you.
I will let you know.

shaik786
02-23-2003, 07:59 AM
Is the two programs are independant, you can use the pipe |
ex:

prog1 | prog2
In which case, the output of the program 'prog1' will be sent (piped) to the program 'prog2'