Implement a simple linux shell in c

Assignment Help C/C++ Programming
Reference no: EM131389484

Solve question and the project in C language.

Question - Implement a simple Linux shell in C capable of executing a sequences of programs that communicate through a pipe. For example, if the user types ls | wc, your program should fork off the two programs, which together will calculate the number of files in the directory. For this, you will need to use several of the Linux system calls described in this chapter: fork, exec, open, close, pipe, dup2 and wait. Note you will to replace stdin and stdout in the child process with the pipe file descriptors; that is the role of dup2.

Project - Questions:

1. Rewrite the previous programs for multiple pipes such as one master with multiple clients; - select (_, _);

2. Can you rewrite the multiple-pipe program using shared memory functions: - shmat(), shmget(), shmcntl() . . .

Reference no: EM131389484

Questions Cloud

Explain who is correct in given contention : Lundgren claimed that Berlinair was not financially able to undertake the BFR contract and therefore no usurpation of corporate opportunity could occur. Who is correct? Explain.
Marketing plan for dave and busters : Write the marketing plan for dave and Busters" Promotions " and "place." Here are the requirements
What are the ethical implications of this for the engineers : Why, or why not? What are the ethical implications of this for the engineers working for an automobile manufacturer?
An action in equity for dissolution of the corporation : The stock in Hotel Management, Inc., a hotel management corporation, was divided equally between two families. - As a result, the owners of half the stock brought an action in equity for dissolution of the corporation. Will they succeed? Explain.
Implement a simple linux shell in c : Implement a simple Linux shell in C capable of executing a sequences of programs that communicate through a pipe. For example, if the user types ls | wc, your program should fork off the two programs, which together will calculate the number of fi..
Discuss about the post given below : WidgeCorp is considering branching out into cold beverages. You have been asked to come up with a regression model to forecast monthly sales of cold beverages for the next year. Think about what variables you might include in your model.
What are the rights of a shareholder : What are the rights of a shareholder who dissents from a proposed sale or exchange of all or substantially all of the assets of a corporation other than in the usual and regular course of its business?
What ethical responsibility for the accidents does it have : Given that McDonnell Douglas management knew that there was a problem with the cargo door as early as 1970, when the prototype failed, and knew that there could be catastrophic failure of the airplane's superstructure, leading to an accident
Explain whether she is correct in given contention : Cutler Company was duly merged into Stone Company. Yetta, a shareholder of the former Cutler Company, having paid only one-half of her subscription, is now sued by Stone Company for the balance of the subscription.- Explain whether she is correct.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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