Explain list of commands that should be executed

Assignment Help Other Subject
Reference no: EM132718909

Question: A Command-Line Interpreter, or Shell

Your shell should read the line from standard input (i.e., interactive mode) or a file (i.e., batch mode), parse the line with command and arguments, execute the command with arguments, and then prompt for more input (i.e., the shell prompt) when it has finished. This is what Minor 2 program should do with addition of batch processing which means just reading a batch line by line and calling the same interpretation logic.

Batch Mode

In batch mode, your shell is started by specifying a batch file on its command line. The batch file contains the list of commands that should be executed. In batch mode, you should not display a prompt, but you should echo each line you read from the batch file back to the user before executing it. After a batch is finished the shell will exit.

Interactive Mode

No parameters specified on command line when the shell is started. In this mode, you will display a prompt (any string of your choice) and the user of the shell will type in a command at the prompt.

You will need to use the fork() and exec() family of system calls. You may not use the system() system call as it simply invokes the system's /bin/bash shell to do all of the work. You may assume that arguments are separated by whitespace. You do not have to deal with special characters such as ', ", \, etc. You may assume that the command-line a user types is no longer than 512 bytes (including the '\n'), but you should not assume that there is any restriction on the number of arguments to a given command.

Reference no: EM132718909

Questions Cloud

Define screen captures and graphics to support your research : According to Kirk (2019), annotations, colors, and composition will have a significant role in your visualizations. You have to be careful with the delicate.
Write about your thoughts about informatics : In this paper, write about your thoughts about informatics over the entire course and address the following: Which aspect(s) of informatics is new to you?
Discuss what a community of practice is : This week we focus on some additional terms for IT users. This week lets discuss what a community of practice is. Why are they important and how can they impact
Explain the limitations of blockchain and emerging concepts : Blockchain continues to be deployed into various businesses and industries. However, Blockchain is not without its problems. Several challenges have already.
Explain list of commands that should be executed : In batch mode, your shell is started by specifying a batch file on its command line. The batch file contains the list of commands that should be executed.
Explaining elements of a basic structured cabling network : Name the three essential elements of a basic structured cabling network? How are they installed and what are the components that are involved with them?
Describe comparison of authentication mechanisms : Research topic. You must include at least four primary, peer-reviewed sources in your bibliography. Additional sources of varying standards can also be used.
Explain incident detection indicators : Distinguish between incident detection precursors and incident detection indicators. For your selected industry, describe the challenges associated with.
Discuss possible strategies for converting old erp system : You are preparing to meet with your end users to discuss possible strategies for converting their old ERP system to a new one. Propose two or three alternative.

Reviews

Write a Review

Other Subject Questions & Answers

  Why is it important to communicate effectively with others

Why is it important to communicate effectively with others? How will effective communication help students in their academic career? Give examples.

  Write about clear statement rules and executive war powers

what is the article "Clear statement rules and executive war powers" about

  How could each framework be used

Compare the two frameworks. How could each framework be used to identify opportunities to improve performance? In particular, how would you use each.

  What sources of data might terrence collect

Considering the scenario, what sources of data might Terrence collect in order to understand the client's problems? Explain why you chose each source. Finally, provide a rationale for the number of sources you recommend.

  Primary markets and market segments

What are the primary markets and market segments, as defined by Zurich Insurance Group?

  Discuss shareholders in any distribution of surplus assets

Mary strongly objects to any proposals that might affect her rights as a preference shareholder

  What elements of training or preparedness would be vital

Once the situation has ended and the scene has been cleared, what are the responsibilities of the incident response team?

  What was the primary question of your research

What was the primary question of your research? After going through the paper development process, did you have to change your research question?

  How stacey delinquent behavior lead to criminal behavior

How could Stacey's delinquent behavior eventually lead to criminal behavior? Explain. What is your reasoning behind this decision? Explain

  Illustrate your understanding of how social justice

Illustrate your understanding of how social justice is conceived in each with a concrete example of an injustice, i.e. a practice or reality that fails to achieve the vision of justice in the theory you chose.

  At first glance the characters of jason susie and em

at first glance the characters of jason susie and e.m. ashford may appear to have minor roles in the play however after

  What do they think psychologists do

Ask three acquaintances (friends, family, co-workers) what they think of when they hear the word "psychologist." What do they think psychologists do?

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