summaryrefslogtreecommitdiff
path: root/src/main.c
blob: 30c31393fa6b8e499012005868e3cfa960000d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   main.c                                             :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: dkaiser <dkaiser@student.42heilbronn.de    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2024/04/29 13:35:21 by dkaiser           #+#    #+#             */
/*   Updated: 2024/05/02 14:38:11 by dkaiser          ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include "pipex.h"

int main(int argc, char *argv[], char *envp[]) {
	if (!argc || !argv || !envp)
		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])
}