with-process-reader ( desc encoding quot -- )
Operating system processes ยป Launching processes

Prev:<process-stream> ( desc encoding -- stream )
Next:with-process-writer ( desc encoding quot -- )


Vocabulary
io.launcher

Inputs
desca launch descriptor
encodingan encoding descriptor
quota quotation


Outputs
None

Word description
Launches a process and redirects its output via a pipe. The quotation is called with input-stream rebound to this pipe.

Examples
USING: io.launcher prettyprint io.encodings.utf8 ; "ls -dl /etc" utf8 [ read-contents ] with-process-reader .
"drwxr-xr-x 213 root root 12288 mar 11 18:52 /etc\n"


Definition