Skip to content
/ pipex Public

The pipex project is a UNIX pipe exploration project in C. It replicates and extends the functionality of UNIX pipes, supporting multiple commands, input redirection, and output appending.

Notifications You must be signed in to change notification settings

DeRuina/pipex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pipex

The purpose of this project is the discovery in detail UNIX mechanism - pipe.

Discription of mandatory part

The program pipex should repeat the behaviour of the next shell command

$> < file1 cmd1 | cmd2 > file2

and looks like this:

$> ./pipex file1 cmd1 cmd2 file2

All errors like: wrong commands, permission to files and etc, need be handle.

Discription of bonus part

Program need handle multiple pipes

$> < file1 cmd1 | cmd2 | cmd3 | ... | cmdn > file2

$> ./pipex file1 cmd1 cmd2 cmd3 ... cmdn file2

Support << and >>, when instead of file1 ishere_doc.

$> cmd1 << LIMITER | cmd2 >> file2

$> ./pipex here_doc LIMITER cmd1 cmd2 file2

Evaluated by 42

125/100

Author

About

The pipex project is a UNIX pipe exploration project in C. It replicates and extends the functionality of UNIX pipes, supporting multiple commands, input redirection, and output appending.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published