H
-H
Hi,
I have a "parent" C program that forks off a "child" C program.
Both the parent and the child print information to both stdout and
stderr.
I would like to redirect the parent and childs output to both stdout
and an output logfile (in effect, a "tee" like behavior).
I've tried several things with pipes and freopens, but I always seem
to get data out of synch.
Any help on this would be greatly appreciated!
Please cc replies to (e-mail address removed).
Thanks in advance.
- H
I have a "parent" C program that forks off a "child" C program.
Both the parent and the child print information to both stdout and
stderr.
I would like to redirect the parent and childs output to both stdout
and an output logfile (in effect, a "tee" like behavior).
I've tried several things with pipes and freopens, but I always seem
to get data out of synch.
Any help on this would be greatly appreciated!
Please cc replies to (e-mail address removed).
Thanks in advance.
- H