This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/wait.h> | |
#include <fcntl.h> | |
#include <string.h> | |
#define TEMP_FILE1 "temp_pipe1.txt" | |
#define TEMP_FILE2 "temp_pipe2.txt" | |
#define MAX_COMMANDS 10 |