feat: update structure
This commit is contained in:
20
cs2106/labs/lab2/part2/lab2p2f.c
Normal file
20
cs2106/labs/lab2/part2/lab2p2f.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/wait.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
int main() {
|
||||
|
||||
printf("Be patient, the program will take around 7 seconds to run.\n");
|
||||
printf("At the end you can do \"cat results.out\" to see the result.\n");
|
||||
|
||||
//
|
||||
// Add code here to pipe from ./slow 5 to ./talk and redirect
|
||||
// output of ./talk to results.out
|
||||
// I.e. your program should do the equivalent of ./slow 5 | talk > results.out
|
||||
// WITHOUT using | and > from the shell.
|
||||
//
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user