home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / bit / listserv / cmspipl / 526 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.3 KB  |  34 lines

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