Program: example_fork_exec_pipe.c
CS-161: Software Project
Instructor: Rob Bruce
Spring 2016

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_2016_cs161/example_fork_exec_pipe/example_fork_exec_pipe.c

A test video used by above program is available at http://www.cs.sjsu.edu/~bruce/programs/spring_2016_cs161/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_2016_cs161/example_fork_exec_pipe/Makefile

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.