home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!VNET.BITNET!PIPER
- Message-ID: <CMSPIP-L%92073006572445@VM.MARIST.EDU>
- Newsgroups: bit.listserv.cmspip-l
- Date: Thu, 30 Jul 1992 10:57:44 LCL
- Sender: VM/SP CMS Pipelines Discussion List <CMSPIP-L@MARIST.BITNET>
- From: "John P. Hartmann" <PIPER@VNET.BITNET>
- Subject: Subject not specified.
- Lines: 23
-
- Subject: GETFILES and EOF on output.
-
- This pipeline scans all files on a minidisk to find the first
- occurrance of a string:
-
- PIPE command LISTFILE * * | getfiles | locate /abc/ | take 1 | ...
-
- This raises an "interesting" question:
-
- At the moment PIPCMD stops when its primary input goes to EOF or it
- receives a negative return code. In particular it does not stop if
- the output becomes not connected.
-
- In the example, this is clearly not desirable in this example since it
- means that the pipeline solution opens all files on the minidisk
- rather than stopping when there is no point in going on.
-
- Should I change it to stop when all output streams become not
- connected? It would still run if the output streams are not connected
- at the beginning (ie as a last stage). (The change is trivial--as if
- that was ever a user concern ;-)
-
- John P. Hartmann
-