1.

Time remaining: 00:08:33 15 If there is just 1 comma- hwyou should simply printhello worldand then exit(0).The program should fork one process. Have the new process execve theprogram named /bin/sed. Use dup2 (or dup) with a pipe to establish a wayfor the original process to capture stdout from sed. The program willaccept command-line arguments that it passes along to sed via execve.Any valid sed arguments may be used during testing. Sample executionsare given below.Be sure to have this:alarm(90);as the first executable line in *BOTH* processes, which means you willneed to do it in at least one of the processes after the fork.I will run tests by typing commands like this:TEMPIN​

Answer» TRY your SELF for ANSWER FOLLOW me


Discussion

No Comment Found