Skip to content

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

Notifications You must be signed in to change notification settings

trobert42/pipex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published