S
Size: a a a
S
Ю
Ю
S
Ю
Ю
S
S
Ю
S
S
S
S
S
Ю
S
EQ
С
С
#include <unistd.h>
int main(void)
{
int fd[2];
pipe(fd);
if(!fork()) {
close(1);
dup(fd[1]);
close(fd[0]);
execlp("ls", "ls", "-l", NULL);
} else {
close(0);
dup(fd[0]);
close(fd[1]);
execlp("wc" "wc", "-w", NULL);
}
return 0;
}
VS