White White
New member
write the display command? the parent will read from the pipe, count, then display
while((read(pfd[0],buf,SIZE))!=0) // while reading
execlp("wc","wc","-l",Null) // count
???? // how to display the output of counting ??
while((read(pfd[0],buf,SIZE))!=0) // while reading
execlp("wc","wc","-l",Null) // count
???? // how to display the output of counting ??