Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trobert42/pipex
Program coded in C that reproduces the behaviour of the shell pipe (|) command
https://github.com/trobert42/pipex
command execve infile outfile pipe
Last synced: 9 days ago
JSON representation
Program coded in C that reproduces the behaviour of the shell pipe (|) command
- Host: GitHub
- URL: https://github.com/trobert42/pipex
- Owner: trobert42
- Created: 2023-08-31T20:38:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-26T16:16:50.000Z (9 months ago)
- Last Synced: 2024-02-26T17:37:05.034Z (9 months ago)
- Topics: command, execve, infile, outfile, pipe
- Language: C
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pipe operator
Pipex reproduces the behaviour of the shell pipe | command in C.
It launches as `./pipex infile cmd1 cmd2 outfile` and behaves as this line does in the shell `< infile cmd1 | cmd2 > outfile`.| Project Name | pipex |
| :----------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------: |
| Description | My implementation of the pipe operator |
| Technologies | |
| External libraries | open(), close(), read(), write(), malloc(), free(), perror(), strerror(), access(), dup(), dup2(), execve(), exit(), fork(), pipe(), unlink(), wait(), waitpid() |## Usage
```bash
gcl https://github.com/trobert42/pipex.git
cd pipex
make
```
Make sure you create file1 as input and the output will be displayed on the existing file2 (or it will be created)
```bash
./pipex file1 command1 command2 file2
```