I am trying to have two programs share information. The original running program streams data to a pipe and the second program should read from that pipe concurrently. They are two different executables. The way I have it now is the first program executes the second program with a system call on UNIX.
It prints out a bunch of zeros, is there anyway to fix this?
main(int argc, char *argv)
//pipe is created
perror("Pipe writepipe creation failed.\n"); //Pipe writepipe created
printf("Pipeline write created.\n");
//pipe is wrote to
//second program is executed
case XK_F4: //>>DDC
printf("Displaying new window\n");
data is read from pipe? NO
cout << input << endl;