Skip to content

iBadCoder00/pipex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PIPEX - IPC Basics

Subject summary

Create a program that imitates bash's pipes behaviour. For detailed information about the project refer to "subject.pdf".

Usage

./pipex <infile> <cmd1> <cmd2> <outfile> || ./pipex_bonus <infile> <cmd1>, <cmd2>, ..., <cmdn> <outfile> || ./pipex_bonus heredoc <limiter> <infile> <cmd1>, <cmd2>, ..., <cmdn> <outfile>

Key project takeaways

  • Forks and child processes. What is a process. Zombie/Orphan processes.
  • I/O redirection.
  • Pipe architecture.
  • Communication between parent and child process.
  • Memory management.
  • How a "heredoc" works. (BONUS)

Side notes

In the final version I changed the way pipex works when a null 'envp' is passed. Instead of exiting with an error message, I returned the null 'envp' and let the program continue to run like bash would do. So that is a change needed to be made in this version for a fully functional pipex.

Final grade

125/125

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published