subject
Engineering, 18.12.2019 19:31 chrisroman152

Write a program called minishell that creates two child processes: one to execute 'ls -al' and the other to execute ‘grep minishell. c’. after the forks, the original parent process waits for both child processes to finish before it terminates. the parent should print out the pid of each child after it finishes. the standard output of 'ls -al' process should be piped to the input to the 'grep minishell. c' process. make sure you close the unnecessary open files for the three processes. the output should be the one line that includes the directory entry for minishell. c. you will need to call the source file minishell. c for this to work properly.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
question
Engineering, 04.07.2019 18:10
Which from the following instrument is commonly used to detect the high pitch butzing sound in bearings? [clo4] a)-digital ultrasonic meter b)-infrared camera c)-spectroscopic d)-vibrometer
Answers: 2
question
Engineering, 04.07.2019 19:10
How to increase the thermal officiency of an ideal simple rankino cycle? among these methods, which one is the best and why?
Answers: 2
question
Engineering, 06.07.2019 03:20
Major ingredients of traditional ceramics (a) silica (b) clay (c) feldspar (d) all
Answers: 1
You know the right answer?
Write a program called minishell that creates two child processes: one to execute 'ls -al' and the...
Questions
question
Mathematics, 20.09.2020 01:01
question
Mathematics, 20.09.2020 01:01
question
Geography, 20.09.2020 01:01
question
Mathematics, 20.09.2020 01:01
question
Mathematics, 20.09.2020 01:01
Questions on the website: 13722363