execlp() doesnt wait for the input??
i am just starting with programming in linux.i am trying to fork a child process and replace it with the "sort" program. below is the code iam using for this.
i expeceted that when i invoked sort programm it would wait for me to give it input but instead the program just terminates.
how can i make the child process take input interactively?