Can UNIX pipe connections be compiled?

klaus u schallhorn klaus at cnix.uucp
Mon Jan 21 23:41:34 AEST 1991


In article <373 at bria> uunet!bria!mike (Michael Stefanik) writes:
>In article <1991Jan18.193234.216 at rucs.runet.edu> rucs.runet.edu!dana (Dana Eckart) writes:
>>
>>Does there exist a piece of software (or is it even possible) to compile
>>a pipe?  In particular, suppose you had 
>>
>>	ls -l | fgrep "Dec" | cut -f 4
>>
>>is there anyway to compile the above pipeline so that the pieces can
>>communicate more quickly.  I am looking for a general solution, not
>>one that works only for the above example.
>
>Unless I'm reading you wrong, you seem to think that pipes are some coded
>mechanism for communication between processes; it isn't.  An (anonymous)
>pipe is a temporary entity created in the filesystem by the kernel on
>behalf of two related processes that want to communicate.  It is useful 
>to think of a pipe as a regular file, in which one process is writing to on
>one end, and another process is reading from on the other end.
>
But only to THINK of a pipe as a file, under unix there never IS a file.
The fact that pipes are implemented as files on certain other operating
systems probably lead to confusion someplace.

klaus
>-- 
>Michael Stefanik, Systems Engineer (JOAT), Briareus Corporation
>UUCP: ...!uunet!bria!mike
>--
>technoignorami (tek'no-ig'no-ram`i) a group of individuals that are constantly
>found to be saying things like "Well, it works on my DOS machine ..."


-- 
George Orwell was an Optimist



More information about the Comp.unix.questions mailing list