Skip to content

Latest commit

 

History

History
62 lines (34 loc) · 1.14 KB

README.md

File metadata and controls

62 lines (34 loc) · 1.14 KB

nanoShell

In informatics, a shell is an application that receives and interprets commands, like the BASH, ZSH or CSH.

In this project, we created the nanoShell shell application that should be able to:

  1. Execute an application with multiple input parameters
  2. Capture signal sent for the nanoShell
  3. Support standard output redirects (> and >>) and standard errors (2> e 2>>)
  4. Show a help summary

Rules

  • Comment every function.
  • Meaningful variable/function names

VS Code Extensions required:

  • Todo Tree
  • GDB Debugger - Beyond

Authors:

  • André Azevedo - 2182634
  • Alexandre Santos - 2181593

Advanced Programming - ESTG - IPL - 2020/2021

To start nanoShell

  • run the following commands in the project directory

    make

  • Then one of the following options:

    ./nanoShell

    ./nanoShell -f help.txt

    ./nanoShell -m 5

    ./nanoShell -h

    ./nanoShell -s signal.txt

Help for nanoShell

  • Use simple commands without metachars and pipes and ' ". Ex:

    ps aux -l

    ls

    gcc -v

  • Use bye command to exit nanoShell