https://github.com/amirshelli/pipex
Simulating the functionality of a pipe through multiprocessing.
https://github.com/amirshelli/pipex
bash multiprocessing
Last synced: about 2 months ago
JSON representation
Simulating the functionality of a pipe through multiprocessing.
- Host: GitHub
- URL: https://github.com/amirshelli/pipex
- Owner: AmirShelli
- Created: 2021-09-18T19:47:56.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-05-04T15:32:39.000Z (about 4 years ago)
- Last Synced: 2025-08-08T06:33:34.662Z (11 months ago)
- Topics: bash, multiprocessing
- Language: C
- Homepage:
- Size: 2.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pipex
## Table of Contents
+ [About](#about)
+ [Getting Started](#getting_started)
+ [Usage](#usage)
## About
This project is the discovery in detail and by programming of a pipe from UNIX.
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
### Prerequisites
This project works only on Linux/MacOS platforms only.
### Installing
To compile the program, you'll have to use your terminal and use the Makefile rules below:
+ ``make`` -> Generates _pipex_ and an object file for each .c
+ ``make clean`` Deletes all object files
+ ``make fclean`` Deletes the object files and the _pipex_
+ ``make re`` makes ``fclean`` and ``make`` again
## Usage
After compiling the program type the executable file and the commands you'd like to try them on.
```
./pipex infile “cmd1” “cmd2” “cmd3” … outfile
```
it will be the equivalent of in the bash environment:
```
< infile cmd1 | cmd2 | cmd3 | ... > outfile
```