subject

1. carefully study the examples provided: fork. c, myls. c, myshell. c, etc. you need to know how they work in order for you to finish this assignment; the examples will also get you prepared for assignment 3. 2. 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: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:00
Write a loop that reads positive integers from standard input and that terminates when it reads an integer that is not positive. after the loop terminates, it prints out, on a line by itself and separated by spaces, the sum of all the even integers read, the sum of all the odd integers read, a count of the number of even integers read, and a count of the number of odd integers read, all separated by at least one space. declare any variables that are needed. assume the availability of a variable, stdin, that references a scanner object associated with standard input. that is, stdin = new scanner(system.in); is given.
Answers: 3
question
Computers and Technology, 22.06.2019 11:30
Andrina writes letters that are regularly sent to hundreds of her company’s customers. because of this, she would like for the mail merge command to be in her quick access toolbar, and she wants it to be the first button on the left. what should andrina do to place the mail merge button there?
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
People with high self-esteem: accept their strengths and weaknesses. believe that failed experiences are failures of their whole self. feel good about who they are only when they reach total success. need positive external experiences to counteract negative feelings that constantly plague them.
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 2
You know the right answer?
1. carefully study the examples provided: fork. c, myls. c, myshell. c, etc. you need to know how t...
Questions
question
Mathematics, 02.07.2019 03:10
question
Mathematics, 02.07.2019 03:10
Questions on the website: 13722361