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
Do you want only the output of the child to go to the log?
The tee unix command does exactly what you describe: you pipe in data and it writes to a log and to stdout.