A program called minishell that creates two child processes

Assignment Help Computer Engineering
Reference no: EM132194556

Question :

Write a C language program called minishell that creates two child processes: one to execute 'ls' and the other to execute 'sort'.

After the forks, the original parent process waits for both child processes to finish before it terminates.

The standard output of 'ls' process should be piped to the input to the 'sort' process.

Make sure you close the unnecessary open files for the three processes

Reference no: EM132194556

Questions Cloud

Write a function that receives an integer array : Write a function that receives an integer array, the length of the array, an integer for indicating the position, an integer for insertion).
Determine the magnitude and the point of application : A concrete foundation mat in the shape of a regular hexagon with 3-m sides supports four column loads as shown. Determine the magnitude and the point.
Calculate the wavelength of the light : In Double slit experiment two glass sheets are introduced in front of each slits. If sheet of refractive index of 1.45 and thickness 11.4um is placed.
Poor source of information : What makes a good source and a poor source of information? How can you tell?
A program called minishell that creates two child processes : Write a C language program called minishell that creates two child processes: one to execute 'ls' and the other to execute 'sort'.
Find the distance using given information : Two ships A and B originally at a distance d from each other depart at the same time from a straight coastline. Ship A moves along a straight line perpendicular
Swap the first element in the vector with the last element : Write a c++ function called swapFrontBack that takes as input a vector of integers.
Program which accepts username and password from user : Write a C++ program which accepts username and password from user and then print on the screen whether the user is authenticated or not.
Talk about reliability of information : Let's talk about reliability of information. Where do you guys go to get your news from? How do you avoid fake news?

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  How to use an arraybased stack s storing integer

Show how to use an arraybased stack S storing (i, j, k) integer triples to allow us to use array A without initializing it and still implement our algorithm.

  Demonstrate the class by writing a program that creates

Demonstrate the class by writing a program that creates one instance of it. Ask the user to enter the employee name, hourly rate and hours worked.

  How language supports interaction with external environment

Take one or two languages you have used and describe how the language supports interaction with the external environment.

  How to calculate the area of a circle

Develop a software application to calculate the area of a circle. The application must accept only one value (radius) and it must display the result in decimal value.

  Select a company described in the wall street journal

select a company described in the wall street journal fortune forbes or another reputable business application. visit

  Appropriate text or on-line resource

Just this Qs By consulting an appropriate text or on-line resource, obtain relevant data and hence estimate the vascular resistance of the following organs: 1) the heart (i.e. the coronary circulation) 2) the brain 3) one kidney 4) both kidneys 5)..

  Who is a desencendant of the queenmother

CS-205 Declarative Programming Assignment. Translate the following questions into Prolog queries and try them out: Who is the mother of Beatrice? Who has a child (one or more)? Who is a desencendant of the Queenmother

  Questionrequire to create a database for music these are

questionrequire to create a database for music. these are entities that i will use for music database with their own

  Design a new data communication infra structure

Design a new data communication infra structure to meet the needs of a XYZ business, or study in an existing infrastructure of a specificorganization.

  What is the content of the register after each shift

The content of a 4-bit register is initially 1101. The register is shifted six times to the right with the serial input being 101101. What is the content of the register after each shift?

  Identify possible threats internal or external to a database

Identify possible threats internal or external to a database that may affect the following components of a database system

  Develop a complete disaster recovery plan

Develop a Complete Disaster Recovery Plan to be submitted to the executive board of your company. Please note that this is a formal writing, all references.

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