Aero T.

asked • 07/23/21

Write a C program with the parent process and a child process communicating with each other using a pipe.

Write a C program with the parent process and a child process communicating with each other using a pipe. The child process will execute the shell command provided by the user via command line arguments. The result of executing this shell command is passed to the parent process using a pipe. The parent process will write the result into a file called result.txt and acknowledge the user on the screen with the shell command and the total number of bytes in the result. For simplicity, the shell command contains only the command name, no argument.

Patrick B.

I'm interested, but only have cygwin unix emulator and Dev C++, and a shabby one at best, which do not support this type of IPC. The best I can offer is IPC via sockets using Java.
Report

07/23/21

Aero T.

Can you please Do it in C language
Report

07/23/21

Aero T.

Its a humble request
Report

07/23/21

Patrick B.

Per email, here is the best I can offer
Report

07/24/21

1 Expert Answer

By:

Patrick B. answered • 07/24/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.