Table of Contents
The aim of this undertaking is to acquire hands-on experience in utilizing system calls and managing processes. Specifically, your task involves creating a fundamental shell in C/C++, utilizing fork, exec, and wait system calls. The given code serves as the foundation for a basic shell program in C++ designed for a Unix-like environment. This shell enables users to engage with the system by inputting commands, executing them, and presenting the results. Your goal is to manage user input, execute the relevant command(s), and incorporate pipes as necessary.
fork
, exec
, and wait
system calls.pipe()
and dupe2()
.parse_input()
see this post.Starter Code: