Writing to both stdout & a file

前端 未结 7 562
耶瑟儿~
耶瑟儿~ 2020-12-07 03:17

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

7条回答
提交回复
热议问题