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, 21.06.2019 20:30
To display data in a certain manner like alphabetical order is called
Answers: 1
question
Computers and Technology, 22.06.2019 16:00
If a client wants to make minor edits, what should he/she use?
Answers: 3
question
Computers and Technology, 22.06.2019 23:30
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is [email protected] -
Answers: 1
question
Computers and Technology, 23.06.2019 01:50
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
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
Mathematics, 13.04.2020 23:13
question
Mathematics, 13.04.2020 23:14
Questions on the website: 13722359