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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:00, joedawg50
What is added to the < meta > tag to describe the encoding type?
Answers: 1
image
Computers and Technology, 22.06.2019 10:00, adam4449
Jackson is teaching the decimal number system. he wants his students to know how to expand numbers by powers of 10. which is the correct order in which digits are assigned values in the decimal number system?
Answers: 1
image
Computers and Technology, 22.06.2019 15:10, AleciaCassidy
Consider a direct-mapped cache with 216 words in main memory. the cache has 16 blocks of 8 words each. it is a word-addressable computer (rather than a byte-addressable computer which we normally discuss). (a) how many blocks of main memory are there? (b) what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, cache block, and block offset fields (if they apply)? (c) to which cache block will the memory reference db6316 map?
Answers: 1
image
Computers and Technology, 23.06.2019 04:00, terrell31
Write a method that takes in an array of point2d objects, and then analyzes the dataset to find points that are close together. be sure to review the point2d api. in your method, if the distance between any pair of points is less than 10, display the distance and the (x, y)s of each point. for example, "the distance between (3,5) and (8,9) is 6.40312." the complete api for the point2d adt may be viewed at ~pf/sedgewick-wayne/algs4/documenta tion/point2d. html (links to an external site.)links to an external site.. try to write your program directly from the api - do not review the adt's source code.
Answers: 1
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 in other subjects:

Konu
Chemistry, 28.08.2019 17:40