University of South Carolina Columbia Create a Shell Interface Case Study

User Generated

Nuzrq901

Programming

University of South Carolina Columbia

Description

Need help with home work. all the details in the file attached.

Programming Assignment: Create a shell interface

Unformatted Attachment Preview

2. Programming Assignment: Create a shell interface The project will create a simple shell interface which accepts user commands and executes each command as an external process. Your simple shell interface should be able to run both Unix command, MS-DOS command and window executable file. Basic Requirement: a. Creating the external process and executing the command with or without parameter, contents returned by the command should be displayed. Process that can run directly by Windows should be executed directly. Internal command of Unix Command MS-DOS Command DOS ? Yes ls dir Yes pwd cd cp file1 file2 copy file1 file2 rm file del file more file more file man help nano notepad grep find ping ping mkdir mkdir rmdir rmdir hostname hostname env set whoami whoami ifconfig ipconfig exit exit b. Display an error message if the command is not supported. c. Adding a history feature. When user enters “history” command, the shell interface will output commands user has entered before. d. Terminate the shell when user enters “exit”. Optional: (Create a separate shell window using Java GUI) ScreenShot of the simple shell
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

I am hereby uploading the final answer. It has three files : BashShell.txt, ConsoleGUI.txt and README.txt. Please change the BashShell.txt, ConsoleGUI.txt's extension to '.java'. Compile using command 'javac' and run using the command 'java'. Example 'javac ConsoleGUI.java' and ' java ConsoleGUI'. The project is error free to the best of my knowledge and as per the requirements provided to me by you. Despite that, if you find any error/s or trouble while executing, please feel free to message me. I will sort your problems ASAP. Thank you very much for giving me the opportunity to help you.
I am hereby uploading the final answer. It has three files : BashShell.txt, ConsoleGUI.txt and README.txt. Please change the BashShell.txt, ConsoleGUI.txt's extension to '.java'. Compile using command 'javac' and run using the command 'java'. Example 'javac ConsoleGUI.java' and ' java ConsoleGUI'. The project is error free to the best of my knowledge and as per the requirements provided to me by you. Despite that, if you find any error/s or trouble while executing, please feel free to message me. I will sort your problems ASAP. Thank you very much for giving me the opportunity to help you.

README
1)
2)
3)
4)

Please change the extension of BashShell.txt from ‘.txt’ to ‘.java’ .
Please change the extension of ConsoleGUI.txt from ‘.txt’ to ‘.java’ .
ConsoleGUI.java is the original and a complete project.
BashShell.java is also a complete project but it creates a java based command line within a bash shell. It has minimal GUI.
5) Some commands like ‘netstat’ may take approximately a minute, to produce
the output, due to a large number of lines.
6) If you run this application in the older versions of linux, the ...


Anonymous
Excellent resource! Really helped me get the gist of things.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags