home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / apollo / 3938 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.7 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: Piping blues
  5. Message-ID: <BCR.92Nov12164325@hpl3sn02.cern.ch>
  6. Sender: news@dxcern.cern.ch (USENET News System)
  7. Organization: CERN, European Research Center for High Energy Physics
  8. Date: Thu, 12 Nov 1992 15:43:25 GMT
  9. Lines: 30
  10.  
  11.  
  12.   Hi there,
  13.  
  14.        I've been trying to establish pipes to existing fortran
  15.   programs.  The best I've been able to is create a temporary
  16.   file/buffer, stop my program and wait with PGM$WAIT for the
  17.   other process to finish.  It seems if I don't have a pipe
  18.   installed, I must wait.  I can't figure out any reasonable
  19.   way to connect a pipe to a fortran unit #.  If I have a 
  20.   stream number I can open a fortran unit, but it seems
  21.   that I can only get a stream # for stdin, stdout, and stderr.
  22.   (None of which I'm willing to replace in my fortran program.)
  23.   I've tried sockets, but for some reason this fails with 
  24.   unformatted input.  Simmularly, I thought about using mailboxes,
  25.   but the need of a separate severe stopped me cold.
  26.  
  27.        So here is where you come in.  I confident there must
  28.   be a simple eligant solution.  Too many things seem "almost"
  29.   work.  Please, if you have any reasonable suggestions, share
  30.   them.
  31.  
  32.        Oh I almost forgot to mention, that I'm trying to use
  33.   only one executable, and programs in standard unix directories
  34.   to keep the program simple to use.  So the idea of creating
  35.   a separte program that duplicates the functions of pipe, but
  36.   returns stream id as well is out.  But, if this can be binded
  37.   into the same program I'll try it.
  38.  
  39.                                   Bill
  40.                      
  41.