subject

One of the philosophies behind Unix is the motto do one thing and do it well. In this spirit, each shell command usually has a very specific purpose. More complicated commands can be constructed by combining simpler commands in a pipeline such that the output of one command becomes the input to another command. The standard shell syntax for pipelines is to list multiple commands, separated by vertical bars I (the pipe character). Your task is to create a system with one parent process and two child processes where the children communicate using a pipe. In the below example the output from the ls -F command is piped to input of the nl command. Use fork(), one form of exec() functions, so that the first child will perform ls -F and pass the output to the second child using one direction pipe, so the second one can perform nl on the list of current directory contents. Later the second child process will print to the screen the result (see example below). The parent process must wait for its both children. 2 file1* file2* dir1/ dir2/

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
Someone wishes to run the software on another computer system that runs an operating system that does not support the software what can he do
Answers: 3
question
Computers and Technology, 22.06.2019 16:30
Primary tech skills are skills that are necessary for success in online education
Answers: 3
question
Computers and Technology, 22.06.2019 22:00
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
question
Computers and Technology, 24.06.2019 17:00
Following are uses of spreadsheets. for each use, choose whether the use is a business use, consumer use, or student use. family budget: sales data: recording research data for science class:
Answers: 2
You know the right answer?
One of the philosophies behind Unix is the motto do one thing and do it well. In this spirit, each s...
Questions
question
SAT, 04.05.2021 16:00
question
Biology, 04.05.2021 16:00
Questions on the website: 13722359