https://github.com/kuninoto/42_pipex
A simple C program that replicates the pipe functionality
https://github.com/kuninoto/42_pipex
21school 42 42-pipex 42-school 42born2code 42cursus 42ecole 42porto 42project 42projects 42school common-core ecole42 pipex pipex-42 pipex1337 pipex42 school21 school42
Last synced: 4 months ago
JSON representation
A simple C program that replicates the pipe functionality
- Host: GitHub
- URL: https://github.com/kuninoto/42_pipex
- Owner: Kuninoto
- Created: 2023-01-07T14:23:24.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-29T22:12:24.000Z (almost 2 years ago)
- Last Synced: 2025-01-10T04:20:20.263Z (5 months ago)
- Topics: 21school, 42, 42-pipex, 42-school, 42born2code, 42cursus, 42ecole, 42porto, 42project, 42projects, 42school, common-core, ecole42, pipex, pipex-42, pipex1337, pipex42, school21, school42
- Language: C
- Homepage:
- Size: 1.5 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pipex (42Porto - 42Cursus)
![]()
![]()
## Grade: Didn't submit
Pipex is a choice project and I've choosen minitalk; Therefore I'm unable to submit it.
Done for consolidation of processes theme.### Overview:
Given command line arguments in the format:
./pipex
_pipex_ replicates the pipe functionality of the shell.### Screenshot:
### Installing and running the project:
1- Clone this repository
git clone https://github.com/Kuninoto/42_pipex
2- Navigate to _lvl_2_pipex_ and run `make`
cd 42_pipex/lvl_2_pipex && make
3- `make clean` so that you don't keep those object files that you won't need anymoremake clean
4- Run _pipex_ with your desired arguments./pipex
### Subject: [pipex en_subject](./extras/en.subject_pipex.pdf)
#### Makefile Available Targets:
`make` or `make all` - Makes _pipex_
`make clean` - Deletes all the resulting object files
`make fclean` - Deletes _pipex_ and all the resulting object files
`make re` - fclean + all## Useful links
[The fork() function in C](https://www.youtube.com/watch?v=cex9XrZCU14&list=PLfqABt5AS4FkW5mOn2Tn9ZZLLDwA3kZUY)
[man dup, dup2](https://www.man7.org/linux/man-pages/man2/dup.2.html)
[C program that demonstrates fork and pipe GeekForGeeks](https://www.geeksforgeeks.org/c-program-demonstrate-fork-and-pipe/)
[Communicating between processes (using pipes) in C](https://www.youtube.com/watch?v=Mqb2dVRe0uo)## Disclaimer
> At [42School](https://en.wikipedia.org/wiki/42_(school)), almost every project must be written in accordance to the [Norm](./extras/en_norm.pdf), the schools' coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.---
Made by Nuno Carvalho (Kuninoto) | [email protected]