c++ Programming Glossary: astdoutpipe
Linux 3.0: Executing child process with piped stdin/stdout http://stackoverflow.com/questions/9405985/linux-3-0-executing-child-process-with-piped-stdin-stdout aEnvironment const char szMessage int aStdinPipe 2 int aStdoutPipe 2 int nChild char nChar int nResult if pipe aStdinPipe 0 perror.. allocating pipe for child input redirect return 1 if pipe aStdoutPipe 0 close aStdinPipe PIPE_READ close aStdinPipe PIPE_WRITE perror.. perror redirecting stdin return 1 redirect stdout if dup2 aStdoutPipe PIPE_WRITE STDOUT_FILENO 1 perror redirecting stdout return..
|