<aside> ⚠️
Under construction!
We are currently updating the Project 1 code and instructions.
It should be done by Feb 3rd.
</aside>
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 (TBA) on Campuswire.Starter Code:
project1-shell.zip
with the following command unzip -d PROJECT project1-shell.zip
. This will create a new directory called
PROJECT
. You can replace PROJECT
with a directory name of your
choice.