The purpose of this project is to discover in detail the UNIX pipe
mechanism.
pipex
goal is to reproduce the behaviour of the following shell command
$> < file1 cmd1 | cmd2 > file2
Execution command should be as follow:
$> ./pipex file1 cmd1 cmd2 file2
All errors like: wrong commands, permission to files and etc, must be handled.
Handle of multiple pipes
$> < file1 cmd1 | cmd2 | cmd3 | ... | cmdn > file2
$> ./pipex file1 cmd1 cmd2 cmd3 ... cmdn file2
Support <<
when instead of file1
is here_doc
.
$> cmd1 << LIMITER | cmd2 > file2
$> ./pipex here_doc LIMITER cmd1 cmd2 file2