I have a parent process which forks out a child to perform execv().
I need the output given by execv() to stdout to be displayed onscreen as also copied to a log fil
Use Tee like this:
./myprog | tee outputfile