does anyone know where i can find some example codes of how to do something like the following in C :
input | process | output
i need to be able to supply the input to the process and read the output it gives onto a variable.
using the following program i am trying to feed a certain external process with its input and take its output and store the whole output onto a variable. i am from a perl background, usually in perl we can use |s easily with filehandles. can anyone point out what i did wrong below?
// script...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.