open file for reading multibale time for reading

Posted by alaamh on Stack Overflow See other posts from Stack Overflow or by alaamh
Published on 2010-04-26T16:19:39Z Indexed on 2010/04/26 16:23 UTC
Read the original article Hit count: 156

Filed under:
|
|

I want to use dup2 to read from input file and redirect it to the input of exec function. but my problem is i have three running process all of them have to open same input file but they do different jobs. what your suggest in such case? i don't know if it is possible to use "cat data.txt" to feed the input for the three other process but i don't know the way to do that.

© Stack Overflow or respective owner

Related posts about c

    Related posts about dup2