Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.29 KB

File metadata and controls

36 lines (22 loc) · 1.29 KB

LinuxShellInterface

Linux Shell Interface - CS361: Systems Programming

Live Demo: https://replit.com/@fabiantorrestec/LinuxShellInterface#README.md

Example: image

  • Wrote Shell Interface using Linux Libraries and Systems Calls.
  • Supports 2 feature piping, waiting, input & output redirection.
  • Demonstrates understanding of parent and child processes utilizing posix_spawn and fork() methods. (implemented using posix_spawn() child creation)
  • Implemented in C.

To Compile:

Type these into the terminal to compile each one:

make spawnshell

make forkshell

To Run:

For ForkShell --

./forkshell

For SpawnShell --

./spawnshell

Normally on most Linux terminals, you can Ctrl+C or Ctrl+X to quit out of any terminal application, but since we want to catch that input and alert the user of it in this project, the terminal will not quit when those commands are invoked. Instead it will repeat back "caught sigint" to alert that we have caught that input (interrupt from keyboard -- termination signal).

To quit the application, you can simply type "quit" or "exit".