Program: example_fork_exec_pipe.c
CS-160: Software Engineering
Instructor: Robert Bruce
Spring 2017

This program demonstrates the equivalent of a popen() command. The parent process creates a named pipe. The parent process then forks a child process. The child process executes ffprobe then sends the output from ffprobe to the parent process through the named pipe.

The full source code for example_fork_exec_pipe.c is available at http://www.cs.sjsu.edu/~bruce/programs/spring_2017_cs_160_section_2/example_fork_exec_pipe/example_fork_exec_pipe.c (right mouse click then select "Save link as" to download).

A test video used by above program is available at http://www.cs.sjsu.edu/~bruce/programs/spring_2017_cs_160_section_2/example_fork_exec_pipe/video.avi (right mouse click then select "Save link as" to download).

A makefile to compile example_fork_exec_pipe.c is available at http://www.cs.sjsu.edu/~bruce/programs/spring_2017_cs_160_section_2/example_fork_exec_pipe/Makefile (right mouse click then select "Save link as" to download).

To compile example_fork_exec_pipe.c, type make within a shell command prompt in the same directory containining example_fork_exec_pipe.c and your Makefile.