passing arguments to a child process in C++

view story

http://www.linuxquestions.org – Hi guys Here I am with yet another problem. This time what I am trying to do is to pass an argument to the standard input stream of a child process. I mean I create two programs .. first one invokes the other. second one contains something like Code: scanf("%d", &n); now I want my first program to be able to pass a value to the second one so that it gets stored in n. Please can someone help me with it?? I am pretty much excited about it and searching in the books of Operating systems that I have didn't give me anything about practically implementing this kinda logic. regards Anuvrat Parashar (HowTos)