{"id":19011369,"url":"https://github.com/colmiik/pipex","last_synced_at":"2025-08-01T10:43:40.048Z","repository":{"id":212122935,"uuid":"730269979","full_name":"ColmiiK/pipex","owner":"ColmiiK","description":"Replication of a bash-like pipe in C","archived":false,"fork":false,"pushed_at":"2024-01-05T18:18:07.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T21:45:30.332Z","etag":null,"topics":["42school","pipex"],"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/ColmiiK.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}},"created_at":"2023-12-11T15:04:26.000Z","updated_at":"2024-07-01T10:54:36.000Z","dependencies_parsed_at":"2024-01-05T19:31:37.688Z","dependency_job_id":"6997f9b7-d2e1-4781-9918-8447791124df","html_url":"https://github.com/ColmiiK/pipex","commit_stats":null,"previous_names":["colmiik/pipex"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColmiiK%2Fpipex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColmiiK%2Fpipex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColmiiK%2Fpipex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColmiiK%2Fpipex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ColmiiK","download_url":"https://codeload.github.com/ColmiiK/pipex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240042754,"owners_count":19738946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["42school","pipex"],"created_at":"2024-11-08T19:14:09.977Z","updated_at":"2025-02-21T15:44:36.100Z","avatar_url":"https://github.com/ColmiiK.png","language":"C","readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/15Galan/42_project-readmes/blob/master/banners/cursus/projects/pipex-light.png?raw=true#gh-light-mode-only\" alt=\"Banner (claro)\" /\u003e\n    \u003cimg src=\"https://github.com/15Galan/42_project-readmes/blob/master/banners/cursus/projects/pipex-dark.png?raw=true#gh-dark-mode-only\" alt=\"Banner (oscuro)\" /\u003e\n    \u003cbr\u003e\n    This project will let you discover in detail a UNIX mechanism that you already know\nby using it in your program.\n    \u003cbr\u003e\n    \u003ca href='https://profile.intra.42.fr/users/alvega-g' target=\"_blank\"\u003e\n        \u003cimg alt='42 (oscuro)' src='https://img.shields.io/badge/Málaga-black?style=flat\u0026logo=42\u0026logoColor=white'/\u003e\n    \u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/badge/score- 125%20%2F%20100-success?color=%2312bab9\u0026style=flat\" /\u003e\n    \u003cimg src=\"https://wakatime.com/badge/user/018cd069-7ab6-4658-9d62-78d9b3970dd2/project/018cd069-ed6a-4aad-961f-bb95404cfd4c.svg\" alt=\"Tiempo\" /\u003e\n\u003c/div\u003e\n\n---\n\n# Mandatory part\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003eProgram name\u003c/th\u003e\n    \u003ctd\u003e\u003cem\u003epipex\u003c/em\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth\u003eTurn in files\u003c/th\u003e\n    \u003ctd\u003eMakefile, \u003ccode\u003e*.h\u003c/code\u003e, \u003ccode\u003e*.c\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n\t\u003cth\u003eMakefile\u003c/th\u003e\n\t\u003ctd\u003e\u003cem\u003eNAME\u003c/em\u003e, \u003cem\u003eall\u003c/em\u003e, \u003cem\u003eclean\u003c/em\u003e, \u003cem\u003efclean\u003c/em\u003e, \u003cem\u003ere\u003c/em\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth\u003eArguments\u003c/th\u003e\n    \u003ctd\u003e\u003ccode\u003efile 1 cmd1 cmd2 file2\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth\u003eExternal functions\u003c/th\u003e\n    \u003ctd\u003e \u003ccode\u003eopen, close, read, write, malloc, free, perror, strerror, access, dup, dup2, execve, exit, fork, pipe, unlink, wait, waitpid\u003c/code\u003e\u003cbr\u003e\u003ccode\u003eft_printf\u003c/code\u003e and any equivalent YOU coded\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n\t\u003cth\u003eLibft authorized\u003c/th\u003e\n\t\u003ctd\u003eYes\u003c/td\u003e\n  \u003c/td\u003e\n  \u003ctr\u003e\n    \u003cth\u003eDescription\u003c/th\u003e\n    \u003ctd\u003eThis project is about handling pipes.\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Observations\n\nYour program will be executed as follows:\n``` bash\n./pipex file1 cmd1 cmd2 file2\n```\nIt must take 4 arguments:\n- ``file1`` and ``file2`` are __file names__.\n- ``cmd1`` and ``cmd2`` are __shell commands__ with their parameters.\n\nIt must behave exactly the same as the shell command below:\n``` bash\n$\u003e \u003c file1 cmd1 | cmd2 \u003e file2\n```\t\n\n## Examples\n``` bash\n$\u003e ./pipex infile \"ls -l\" \"wc -l\" outfile\n```\nShould behave like: ``\u003c infile ls -l | wc -l \u003e outfile``\n``` bash\n$\u003e ./pipex infile \"grep a1\" \"wc -w\" outfile\n```\nShould behave like: ``\u003c infile grep a1 | wc -w \u003e outfile``\n\n## Requirements\n\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\nrelink.\n- You have to handle errors thoroughly. In no way your program should quit unexpectedly (segmentation fault, bus error, double free, and so forth).\n- Your program mustn’t have __memory leaks__.\n- If you have any doubt, handle the errors like the shell command:\n``\u003c file1 cmd1 | cmd2 \u003e file2``\n# Bonus part\n\nYou will get extra points if you:\n- Handle multiple pipes.\u003cbr\u003e\nThis:\n``` bash\n$\u003e ./pipex file1 cmd1 cmd2 cmd3 ... cmdn file2\n```\nShould behave like:\n``` bash\n\u003c file1 cmd1 | cmd2 | cmd3 ... | cmdn \u003e file2\n```\n- Support « and » when the first parameter is \"here_doc\".\u003cbr\u003e\nThis:\n``` bash\n$\u003e ./pipex here_doc LIMITER cmd cmd1 file\n```\nShould behave like:\n``` bash\ncmd \u003c\u003c LIMITER | cmd1 \u003e\u003e file\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolmiik%2Fpipex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolmiik%2Fpipex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolmiik%2Fpipex/lists"}