Re: Pipes to process?

From: Erick Gallesio <>
Date: Fri, 25 Aug 1995 15:07:28 +0100

> Arturo Perez -- Software Engineer writes

> I just looked over the STk 2.2 docs and it left me
> with the following question.
> How do you start a process, using the new process
> package, whose input and/or output are pipes? There
> doesn't seem to be a way to create pipes other than
> through the socket package...

Hereafetr is an example which "connects" a shell to the interpreter using pipes

(define p (run-process "/bin/sh" :input :pipe :output :pipe))
(define in (process-input p))
(define out (process-output p))
(format in "ls -ls \n")
(flush in) ;; Important otherwise buffering will not send the line (should
              ; be changed)
(read-line out)
===> first line of the ls command

Hope it helps

                -- Erick
Received on Fri Aug 25 1995 - 15:07:32 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST