Make the shell capable of taking its command line put

Assignment Help Computer Engineering
Reference no: EM132085764

Operating Systems Projects and Exercises Exercise 6

Finishing Off Your Shell This week you will be putting the finishing touches to your shell: Script file support Make the shell capable of taking its command line put from a file whose name is provided as a command line in argument. i.e. if the shell is invoked with a command line argument: my shell batchfile then batchfile is assumed to contain a set of command lines for the shell to process.

When the end-of-file is reached, the shell should exit. When a batch file is provided, the shell should provide no prompt. obviously shell is invoked without a command line argument it should solicitinput from the user via a if the prompt on the display as before.

You will probably need to have a look at the difference between the gets and fgets functions and insert a test for end-of-file for when reading from a file (int You may find it easier to use fgets for both types of input using the default FILE stream pointer atdin when no batch file is specified.

Note the use fgets in the c example of Internal Commands Aliases: To provide support for batch file operation, add the following internal commands: echo <="" span="">

Reference no: EM132085764

Questions Cloud

Key terms from poetic form : Then, in your initial post of around two hundred words, analyze the poem using at least two of the following key terms from poetic form:
Configure a span element to contain this text each time it : Configure the navigation area. Remove the element from the navigation area, because the CSS will configure the bold font style.
Symbolic interpretation of story : What details might contribute to such a symbolic interpretation of this story?
What are the differences between hamlet and horatio : What are the differences between Hamlet and Horatio? Hamlet praises Horatio for being steadier than he but would one choose to be Horatio rather than Hamlet
Make the shell capable of taking its command line put : Script file support Make the shell capable of taking its command line put from a file whose name is provided as a command line.
Anyone seen dutchman movie : Anyone seen Dutchman movie? Let's talk about the old black conductor at the end of the play.
Who are the stakeholders in this situation : Molina Corporation has paid 60 consecutive quarterly cash dividends (15 years). Who are the stakeholders in this situation
What is the big o notation for the execution time : What is the Big O notation for the execution time of an algorithm that is invariant with respect to the amount of data processed?
Separation and black power jones tried to depict : With all of this being said, do you think the style of the play worked to show the separation and black power Jones tried to depict?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Why the whodunit system design had a great start

The Whodunit system design had a great start, and providing more detail is the next appropriate step in the design process. Collaboration diagrams help give this additional detail, and they will be the focus of this assignment.

  Explain what the given fragment of c code does

Explain what the following fragment of C code does.

  What steps can small company take to mitigate potential loss

Small companies are perhaps more vulnerable to the loss of key employees and the resulting loss of organizational knowledge.

  Design "getter" methods for make and color

make a printAll() method. In this method, print the color and make of the automobile on one line in accordance to the sample session given below.

  Write down an event handler that automatically displays

design an ASP.NET project with Visual Studio.NET 2005. Add an aspx form to the application. Place an Image control, three RadioButton controls, a Label control, a TextBox control, and a Button control on the form. Add three images to the applicati..

  Name the database clothingstore.mdb

Edit Relationship between Customers and Orders and check Cascade Update Related Fields and check Cascade Delete Related Fields.

  List and sketch six of the common stock shapes

List and sketch six of the common stock shapes. What is the difference between roughing and finishing machining operations?

  Transfering the power over ethernet

A recent article in an industry magazine discussed the ability to transfer the Power over Ethernet (PoE) and an emerging technology which is able to transfer the Power over Fiber (PoF).

  Create a set of use cases for an online registration system

Create a set of use cases for an online university registration system. The system should enable the staff of each academic department to examine the courses offered by their department.

  Mux design the function

MUX design the function F(A,B,C) = (POS) (0,1,2,3,5,7,). The MUX has an active low strobe input.

  Describe potential benefits of enterprisewide architecture

List and describe all of the potential benefits (and costs) that Nationstate would realize from the establishment of an enterprisewide architecture.

  Write a function mirror front to back

Write a function mirror Front To Back that mirrors the first half of a sound onto the second half.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd