redirect stdin and stdout in c - TechRepublic
General discussion
May 8, 2002 at 01:53 PM
tech

redirect stdin and stdout in c

by tech . Updated 24 years, 1 month ago

How do I redirect the stdin and stdout in such a way that it could be put into a string? I want to do this so that a program run using system() or one of the exec functions would recieve its input from the program and its output would go to the program, instead of to the screen. This is in the c programming language in Linux.

This discussion is locked

All Comments