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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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