Skip to content

javiburn/pipex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pipex

Simulating the pipe operator "|" in C language.

A project designed to learn about creating new processes and how to communicate between them. With this project I learned how the fork(), pipe() and dup2() functions work.

Screen Shot 2023-05-17 at 12 06 57 PM

The program admits 4 arguments (plus the program's name ./pipex), being the first one the name of the file to be read, then the two commands that will be executed simulating the pipe operation, and finally the name of the output file.

With this, the command "./pipex infile command1 command2 outfile" works the same way as "<infile command1 | command2>outfile", as it is shown in the image above.

About

Simulating the pipe operator "|" in C language

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages