fork+exec in c++, linux
Posted on 2010-11-29
I have 2 processes (actually working programs) in 2 different directories, I want to spawn the second process from the first.
Now I am running both of them in two different terminals like client and server and able to communicate. I donot know much about child process creation. can some one explain using c++ code. Now I need to start the client in my program or spawn the child from my program (server) in different location using only fork()+ ecec**().
I need both of them need to execute concurrently...and want to see the outputs in 2 tabs of terminals...can some one help me regarding this.
Thanks in advance.