An open API service indexing awesome lists of open source software.

https://github.com/taisiabarteneva/pipex

Implementation of a mechanism for inter-process communication in a shell
https://github.com/taisiabarteneva/pipex

c multiprocessing pipeline systemcalls

Last synced: 4 days ago
JSON representation

Implementation of a mechanism for inter-process communication in a shell

Awesome Lists containing this project

README

          

# pipex
#### 42 school project

The goal of the project is to implement a pipe functionality, using unix system calls `fork`, `pipe`, `execve` and `dup2`

See `subject.pfd` in the root of the repository to get more detailed info about the project
### How to build
```
$ make
```
The program handles multiple commands. Program execution
```
$ ./pipex file1 cmd1 cmd2 cmd3 ... cmdn file2
```
is equivalent to
```
$ < file1 cmd1 | cmd2 | cmd3 ... | cmdn > file2
```
I also implemented **heredoc syntax**. It works as follows
```
$ ./pipex cmd << LIMITER | cmd1 >> file | cmd2 | cmd3
```