{"id":19196501,"url":"https://github.com/semx2a/pipex","last_synced_at":"2026-04-20T04:06:13.850Z","repository":{"id":50931083,"uuid":"449416298","full_name":"semx2a/pipex","owner":"semx2a","description":"The Pipex project is a detailed exploration and programming of a UNIX pipe. ","archived":false,"fork":false,"pushed_at":"2024-02-21T14:28:27.000Z","size":587,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T04:44:07.732Z","etag":null,"topics":["c","file","pipeline","redirections","shell","unix","unix-shell"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/semx2a.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-18T19:18:12.000Z","updated_at":"2024-02-01T17:33:07.000Z","dependencies_parsed_at":"2025-01-04T20:03:23.711Z","dependency_job_id":null,"html_url":"https://github.com/semx2a/pipex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/semx2a/pipex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semx2a%2Fpipex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semx2a%2Fpipex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semx2a%2Fpipex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semx2a%2Fpipex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semx2a","download_url":"https://codeload.github.com/semx2a/pipex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semx2a%2Fpipex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32032306,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","file","pipeline","redirections","shell","unix","unix-shell"],"created_at":"2024-11-09T12:13:52.154Z","updated_at":"2026-04-20T04:06:13.814Z","avatar_url":"https://github.com/semx2a.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pipex\n\nThe Pipex project is a detailed exploration and programming of a UNIX pipe. The project is coded in C and adheres to the 42 School coding norm. This project served as an excellent opportunity to gain a deeper understanding of system calls and inter-process communication via pipes in a UNIX-like system.\n\n## Usage\n\nYou can launch the test script by running the following command:\n\n```shell\nchmod +x test.sh \u0026\u0026 ./test.sh\n\n```\n\nYou can use the following arguments to run the test script:\n\n```shell\n./test.sh clean # Cleans the project\n./test.sh bonus # Runs the bonus project tests\n```\n\n## Project Description\n\nThe Pipex project mimics the behavior of the following simple shell command:\n\n```bash\n\u003c file1 cmd1 | cmd2 \u003e file2\n\n```\n\nThis command takes two commands - `cmd1` and `cmd2` - and two files - `file1` and `file2`. It runs `cmd1` with `file1` as input and `cmd2` with the output of `cmd1` as input. The final output of `cmd2` is then written into `file2`.\n\nThe Pipex program is executed in the following way:\n\n```shell\n./pipex file1 cmd1 cmd2 file2\n\n```\n\n## Skills Gained\n\nThrough this project, I have gained a deeper understanding of the following:\n\n- The use of pipes for inter-process communication.\n- The use of system calls such as `fork()`, `execve()`, `pipe()`, `dup()`, `dup2()`, and `waitpid()`.\n- Handling and redirection of standard input, output and error.\n- The use of file descriptors.\n- Error handling and memory management in C, ensuring no memory leaks.\n- Reading and understanding man pages.\n- Working with Makefiles and libraries in C.\n- Practical experience with Makefiles and libraries in C.\n\n## Bonus\n\nThe Pipex project also ventured into additional complexities such as:\n\n- Managing multiple pipes, which extends the functionality to this format:\n\n```shell\n./pipex file1 cmd1 cmd2 cmd3 ... cmdn file2\n\n```\n\nThis is identical to the shell command:\n\n```bash\n\u003c file1 cmd1 | cmd2 | cmd3 ... | cmdn \u003e file2\n\n```\n\n## Troubleshooting\n\nIf you encounter the following error when running make:\n\n```shell\nmake: *** No rule to make target 'libft.a', needed by 'pipex'.  Stop.\n\n```\n\nYou can fix it by running the following command:\n\n```shell\ngit submodule update --init --recursive\n\n```\n\nIf the git submodules didn't clone properly, you can run the following commands to clone the submodules:\n\n```bash\ngit submodule update --init --force --remote\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemx2a%2Fpipex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemx2a%2Fpipex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemx2a%2Fpipex/lists"}