Skip to content

H-kaddour/Pipex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pipex

image

The project PDF:

https://cdn.intra.42.fr/pdf/pdf/44339/en.subject.pdf

The idea of the project:

👋first you need to study the behavior of the actual pipe | and see how it work under the hood, then you need to learn about this system calls fork pipe dup & dup2 close access execve exit perror, now the idea of the project is to execute the first cmd1 and write it in the infile and the infile will send it to fd[1] of the pipe as an output and the fd[1] will send it to fd[0] of the pipe as input and the cmd2 will execute and output in the outfile.

Source:

  1. Pipex: Check it out.
  2. Process: Check it out.
  3. Pipe: Check it out.
  4. Pipe: Check it out.
  5. I/O: Check it out.
  6. dup & dup2: Check it out.
  7. Fork: Check it out.
  8. Fork: Check it out.
  9. Simulating pipe: Check it out.
  10. execve: Chek it out.
  11. execve: Chek it out.
  12. fd, dup/dup2: Check it out.
  13. Pipe video: Check it out.
  14. Fork video: Check it out.
  15. dup2 code: Check it out.
  16. access: Check it out.
  17. execve: CHeck it out.
  18. exit: Check it out.
  19. Makefile color font: Check it out.
  20. Posix name: Check it out. You can also man those fuction. image

My final point:

image I didn't do the bonus part for now.

Thank you for reading, have a good one 🚀.

Releases

No releases published

Packages

No packages published