Hope you find this interesting. Happy Shelling....Write a mini-shell with a following features
- The shell should receive command from the user and execute it. If the user just gives the command, you have search the command in all of directories defined in the environment variable PATH. If you are not able to find the command, you have print "no luck, seems like your program is toasted". If the user specifies the path along with the program, it is enough if you just load and execute it.
- You should store the last command that is execute and its exit status.
- You should implement a facility to run the program in background.
- You should remember last “N” commands and print it upon user request.
- You should name your shell and it should appear as the prompt.
- When you type "quit", you must quit from your shell with a greeting.
06 March 2012
Do-It-Yourself (OpenGyan) - Write a (your own) shell
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment