diegovivas / simple_shell

Simple shell sh style

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Carlos y Diego's Shell

Julien Barbi alias mr Barbier


Description

Diego y Carlos's Shell is a simple UNIX command interpreter that replicates funtionalities of the simple shell. Additional functions are also included. THis program was written entirely in C as a project for HOlberton School.

Installation

Clone this repository into your pc. For best results, files should be compiled with gcc and the following flags: -Wall -Wextra -Werror -pedantic -Wno-format.

Usage

After compilation, the resulting program can run stand-alone either in interactive or non-interactive mode.

Interactive Mode

In interactive mode, simply run the program and wait for the prompt to appear. From there, you can type commands freely, exiting with either the "exit" command or ctrl-D.

Non-Interactive Mode

In non-interactive mode, echo your desired command and pipe it into the program like this:

echo "ls" | ./shell

In non-interactive mode, the program will exit after finishing your desired command(s).

Credits

All code written by Diego Vivas Carlos Alvarez

About

Simple shell sh style


Languages

Language:C 100.0%