diff options
| author | Dominik Kaiser | 2024-04-29 15:27:30 +0200 |
|---|---|---|
| committer | Dominik Kaiser | 2024-04-29 15:27:30 +0200 |
| commit | 043f5a1e4538d508ed8899559f6dfb8ee1993e4b (patch) | |
| tree | b52cf16f9f04b095d6ec7f6d43ad6cab75a0a062 /src | |
| parent | 562ea05f565cad984f4d1c2fa3c5083f8e808a87 (diff) | |
| download | pipex-043f5a1e4538d508ed8899559f6dfb8ee1993e4b.tar.gz pipex-043f5a1e4538d508ed8899559f6dfb8ee1993e4b.zip | |
Add main.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..01c022a --- /dev/null +++ b/src/main.c @@ -0,0 +1,24 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* main.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2024/04/29 13:35:21 by dkaiser #+# #+# */ +/* Updated: 2024/04/29 15:27:14 by dkaiser ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "pipex.h" + +int main(int argc, char *argv[]) { + if (argc != 5) + return (1); + + // Read content of file1 (argv[1]) + // Execute cmd1 (argv[2]) with file1 on stdin + // pipe the output of cmd1 into cmd2 + // Execute cmd2 (argv[3]) with the piped input on stdin + // Write output of cmd2 into file2 (argv[4]) +} |
