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