home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / apollo / 3951 < prev    next >
Encoding:
Text File  |  1992-11-13  |  1.4 KB  |  41 lines

  1. Newsgroups: comp.sys.apollo
  2. Path: sparky!uunet!mcsun!dxcern!dxcern!bcr
  3. From: bcr@cernapo.cern.ch (Bill Riemers)
  4. Subject: Re: Piping blues
  5. In-Reply-To: bcr@cernapo.cern.ch's message of Thu, 12 Nov 1992 15:43:25 GMT
  6. Message-ID: <BCR.92Nov13113131@hpl3sn02.cern.ch>
  7. Sender: news@dxcern.cern.ch (USENET News System)
  8. Organization: CERN, European Research Center for High Energy Physics
  9. References: <BCR.92Nov12164325@hpl3sn02.cern.ch>
  10. Date: Fri, 13 Nov 1992 10:31:31 GMT
  11. Lines: 28
  12.  
  13.  
  14. Purhapes I should be a bit more clearer.  I'm trying
  15. to replace my open and close statements to make it 
  16. possable for the user to specify the following as
  17. legal filenames:
  18.  
  19.          '| compress -c > file1.Z'
  20.          'zcat file1.Z |'
  21.          '| prf -pr pr32'
  22.  
  23. and so on.  I then interpret these a requests for
  24. the io to be sent to a syscall of the user's default
  25. shell.  Right now this works only if the node
  26. has enough disk space to store the buffer.  (Effective-
  27. ly limiting me to only 5-10MEG files.)  Why?
  28. Because if I just try reading in the stream as
  29. it is created I will just read in an EOF.  It is not
  30. practicle to rewrite the whole program to ignore
  31. these.  Since things directed through pipe(2) don't
  32. have this problem, maybe I can solve this problem
  33. if I can convert pipe unit numbers into either
  34. 1) a stream number, 2) even better a fortran unit
  35. number directly.
  36.  
  37. Thanks in advance.
  38.  
  39.                      Bill
  40.  
  41.