PIPELINE(1)

NAME
pipeline - run two commands with a pipe between them

SYNOPSIS
In an execlineb(1) script:

pipeline [-d] [-r | -w] { prog1... } prog2...

DESCRIPTION
pipeline reads prog1... in a block ( cf. execline-block(7)) and unquotes it.

It runs prog1... as a child process and exec(3) s into prog2..., with a pipe between prog1' s stdout and prog2' s stdin.

prog1' s pid is available in prog2 as the! environment variable.

You can easily create a chain of pipes: ‘execlineb -Pc 'pipeline { a } pipeline { b } c'’ is roughly equivalent to ‘sh -c 'exec a | b | c'’, except that shells usually run ‘c’ as a child process like ‘a’ and ‘b’, and ‘exec’ has no effect.

OPTIONS

-d  Run prog1... as a grandchild of pipeline. This is meant to prevent a zombie from hanging around if prog2... fails to wait for its children.

-r  Make prog1... the writer and prog2... the reader. This is the default.

-w  Make prog1... the reader and prog2... the writer.

SEE ALSO
background(1), backtick(1), execlineb(1), foreground(1), if(1), ifelse(1), ifte(1), ifthenelse(1), runblock(1), exec(3), execline-block(7)

This man page is ported from the authoritative documentation at: https://skarnet.org/software/execline/pipeline.html

AUTHORS
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port)