https://github.com/beastwick18/shell-assignment
https://github.com/beastwick18/shell-assignment
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/beastwick18/shell-assignment
- Owner: Beastwick18
- Created: 2022-09-13T07:43:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-05T23:42:22.000Z (over 3 years ago)
- Last Synced: 2025-01-20T00:55:40.445Z (over 1 year ago)
- Language: C
- Size: 41 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shell-Assignment
- This is my Shell Assignment for my Operating Systems class (CSE3320).
- In this assignment, I implemented a shell program that takes in a given command of up to 10 arguments and 255 characters.
- My implementation uses my implementation of a static array structure to keep track of command history and previously spawned proccess PIDs.
- A maximum of 20 PIDs and 15 commands can be stored in history.
- Upon running the program, the user is prompted with the shell `msh>` where they can enter their commands.
- Valid commands are as follows:
- history
- listpids
- any valid executable within the paths:
- `./`
- `/usr/local/bin/`
- `/usr/bin/`
- `/bin/`
- Paths are searched in above order
- The shell will continue once the spawned process exits