Source Code
A fairly simple implementation of a Linux shell in C++(don't expect anything clever on the code,I'm quite rusty in C++).Allows directory change,execution of commands and pipeline(2 commands), redirection of input/output and background execution.The symbols used are the common ones(cd,|,>,>>,<,&).
Round Robin algorithm is used to handle the background processes.
Supported commands examples:
- cd "new/dir/" to change directory.
- "command"
- "command&"
- "dir/to/command/command"
- "command1 | command2"
- "command1 | command2&"
- "command1file"
- "command>>file"
- "command>file"
- "command<file"
- "exit"
No comments:
Post a Comment