mirror of
https://gitlab.com/blau_araujo/cblc.git
synced 2025-05-09 10:16:35 -03:00
correção do conteúdo da aula 10
This commit is contained in:
parent
0ccf30d502
commit
95ea0a5bd5
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue