From 95ea0a5bd56b730db612db2703892b2e42e862f9 Mon Sep 17 00:00:00 2001 From: Blau Araujo Date: Wed, 23 Apr 2025 10:33:45 -0300 Subject: [PATCH] =?UTF-8?q?corre=C3=A7=C3=A3o=20do=20conte=C3=BAdo=20da=20?= =?UTF-8?q?aula=2010?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aulas/10-dataio/README.org | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/aulas/10-dataio/README.org b/aulas/10-dataio/README.org index 690d45c..189682e 100644 --- a/aulas/10-dataio/README.org +++ b/aulas/10-dataio/README.org @@ -180,7 +180,7 @@ Por exemplo, eu posso encadear o nosso programa de exemplo em um pipe com o utilitário =cat=: #+begin_example -$ ./a.out | cat +:~$ ./a.out | cat total 0 lrwx------ 1 blau blau 64 abr 23 08:56 0 -> /dev/pts/1 l-wx------ 1 blau blau 64 abr 23 08:56 1 -> pipe:[2551457] @@ -214,9 +214,8 @@ int main(void) { Compilando e executando com o pipe novamente: #+begin_example -$ gcc -Wall fdlist.c -blau@xeon:[~/git/cblc/aulas/10-dataio] (main) -$ ./a.out | cat +:~$ gcc -Wall fdlist.c +:~$ ./a.out | cat Processo do programa: total 0 lrwx------ 1 blau blau 64 abr 23 09:06 0 -> /dev/pts/1