{"id":20173434,"url":"https://github.com/abdellahbellakrim/pipex","last_synced_at":"2026-05-28T23:31:26.648Z","repository":{"id":208692634,"uuid":"454850395","full_name":"AbdellahBellakrim/pipex","owner":"AbdellahBellakrim","description":"Mimic pipes in UNIX using C","archived":false,"fork":false,"pushed_at":"2024-04-25T18:10:20.000Z","size":6210,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T04:43:24.752Z","etag":null,"topics":["algorithms","c","data-structures","file-io","low-level-programming","pipes","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/AbdellahBellakrim.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}},"created_at":"2022-02-02T16:28:08.000Z","updated_at":"2024-04-25T18:11:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"41ac05ce-1cd0-4f7b-9508-d1cd8d5726d1","html_url":"https://github.com/AbdellahBellakrim/pipex","commit_stats":null,"previous_names":["abdellahbellakrim/pipex"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AbdellahBellakrim/pipex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdellahBellakrim%2Fpipex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdellahBellakrim%2Fpipex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdellahBellakrim%2Fpipex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdellahBellakrim%2Fpipex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbdellahBellakrim","download_url":"https://codeload.github.com/AbdellahBellakrim/pipex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdellahBellakrim%2Fpipex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33630999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"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":["algorithms","c","data-structures","file-io","low-level-programming","pipes","unix-shell"],"created_at":"2024-11-14T01:36:08.937Z","updated_at":"2026-05-28T23:31:26.632Z","avatar_url":"https://github.com/AbdellahBellakrim.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pipex\n\n## Summary\nThis project allows you to explore the details of pipes in UNIX mechanism by implementing it in your program.\n\n\n## Table of Contents\n- [Common Instructions](#common-instructions)\n- [Mandatory Part](#mandatory-part)\n- [Bonus Part](#bonus-part)\n\n\n## Common Instructions\n- Your project must be written in C.\n- Your project must be written in accordance with the Norm.\n- Your functions should not quit unexpectedly (segmentation fault, bus error, double free, etc) apart from undefined behaviors.\n- All heap allocated memory space must be properly freed when necessary. No leaks will be tolerated.\n- If required, you must submit a Makefile which will compile your source files.\n- Your Makefile must at least contain the rules $(NAME), all, clean, fclean, and re.\n- To turn in bonuses, include a rule bonus in your Makefile.\n- If your project allows you to use your libft, include a separate libft folder with its associated Makefile.\n- We encourage you to create test programs for your project.\n\n## Mandatory Part\n**Program name:** pipex\n\n**Turn in files:** Makefile, *.h, *.c\n\n**Makefile:** NAME, all, clean, fclean, re\n\n**Arguments:** file1 cmd1 cmd2 file2\n\n**External functs.:**\n- open, close, read, write, malloc, free, perror, strerror, access, dup, dup2, execve, exit, fork, pipe, unlink, wait, waitpid\n- ft_printf and any equivalent YOU coded\n- Libft authorized: Yes\n\n**Description:**\nThis project is about handling pipes. Your program will be executed as follows: ```./pipex file1 cmd1 cmd2 file2```\nIt must take 4 arguments:\n- file1 and file2 are file names.\n- cmd1 and cmd2 are shell commands with their parameters.\nIt must behave exactly the same as the shell command below:\n```$\u003e \u003c file1 cmd1 | cmd2 \u003e file2```\n### Examples\n```$\u003e ./pipex infile \"ls -l\" \"wc -l\" outfile```\nShould behave like: ```\u003c infile ls -l | wc -l \u003e outfile```\n\n```$\u003e ./pipex infile \"grep a1\" \"wc -w\" outfile```\nShould behave like: ```\u003c infile grep a1 | wc -w \u003e outfile```\n### Requirements\nYour project must comply with the following rules:\n- You have to turn in a Makefile which will compile your source files. It must not relink.\n- You have to handle errors thoroughly. In no way your program should quit unexpectedly.\n- Your program mustn't have memory leaks.\n\n## Bonus Part\nYou will get extra points if you:\n- Handle multiple pipes.\n- Support \"\u003c\u003c\" and \"\u003e\u003e\" when the first parameter is \"here_doc\".\n\nThe bonus part will only be assessed if the mandatory part is perfect.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdellahbellakrim%2Fpipex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdellahbellakrim%2Fpipex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdellahbellakrim%2Fpipex/lists"}