trobert42 / pipex

Program coded in C that reproduces the behaviour of the shell pipe (|) command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 C
External libraries open(), close(), read(), write(), malloc(), free(), perror(), strerror(), access(), dup(), dup2(), execve(), exit(), fork(), pipe(), unlink(), wait(), waitpid()

Usage

  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)

./pipex file1 command1 command2 file2

About

Program coded in C that reproduces the behaviour of the shell pipe (|) command


Languages

Language:C 96.6%Language:Makefile 3.4%