8b112a7776093adf524c9f2ff2186ee9bddfa8d5
10 int out_file_fd
= open("ouput.txt", O_CREAT
| O_WRONLY
, S_IRUSR
| S_IWUSR
);
11 if (out_file_fd
< 0) {
12 perror("open failure\n");
16 dup2(out_file_fd
, STDOUT_FILENO
);
18 puts("Redirection de stdout du processus dans ce fichier");