Develop a C program for Linux called pipes

Assignment Help Taxation
Reference no: EM131166083

Develop a C program for Linux called pipes.c that does the following:

In the main() function, it creates a pipe using the pipe() function, then creates two child processes with fork(). Child 1 redirects stdout to the write end of the pipe and then executes with execlp() the "ls -al" command. Child 2 redirects its input from stdin to the read end of the pipe, then it executes the "sort -n -k 5" command.

After creating both children, the parent process waits for them to terminate before it can exit.

Note that you may have to create Child 2 first, followed by Child 1.

The parent program does the same thing as a shell that runs the command "ls -al | sort -r -n -k 5".

You must use the fork(), pipe(), dup2(), close(), execlp() functions (or other exec() variation). You can edit your program with the geditapplication, available from the command line. Or install emacs using command "sudo apt-get install emacs" and learn to use it.

Reference no: EM131166083

Compute the combined tax liability of the corporations

State if a control group has been created and, if so, define the controlled and compute the combined tax liability of the two corporations.

Discuss the ramifications of employing plan

Identify the tax issue(s) posed by the facts presented and Determine the possible tax consequences of each issue that you identify - Discuss the ramifications of employing thi

Compare realization of income with recognition of income

Compare and contrast realization of income with recognition of income. Tim is a plumber who joined a barter club. This year Tim exchanges plumbing services for a new roof.

What is rick filing status for 2012

Rick, whose wife died in December 2011, filed a joint tax return for 2011. He did not remarry, but has continued to maintain his home in which his two dependent children liv

Calculate kline''s intraperiod income tax expense

The company is subject to income tax rates of 30% on the first $40,000 of income and 35% on all income in excess of $40,000. Prepare a schedule to calculate Kline's intraperio

Who is considered to be a qualifying person for this purpose

The amount of the child and dependent care credit is based on the amount of the taxpayer's expenditures to provide care for one or more qualifying persons. Who is considered

Partnership return for the lawson and norman enterprises

Prepare the Partnership Return for the Lawson And Norman Enterprises for the year of 2014 and Schedule K-1 for both partners. The following Forms are needed to complete the

Compute the taxable income

The computer is used 100 percent for business. Muhammad did not make a $179 election with respect to computer. He does not claim additional first-year depreciation.

Reviews

Write a Review

 
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd