How to redirect the stdin and stdout of child process which exec interactive prog?
Hi all
I have a program which has four processes:
father process: get the standard input from user
child process 1: exec `bc`(for example)
child process 2: exec `ftp`
child process 3: exec `ssh`
How can I send the input from father process to all the three processes as their stdin , and got the output of the 3 processes return to father process rather then print to stdout?
Thanks
|