home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / prolog / 1618 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.3 KB

  1. Path: sparky!uunet!mcsun!uknet!daresbury!doc.ic.ac.uk!doc.ic.ac.uk!not-for-mail
  2. From: jvp@doc.ic.ac.uk (Jeremy Pitt)
  3. Newsgroups: comp.lang.prolog
  4. Subject: Pipes in Quintus
  5. Message-ID: <17ljnjINNlbo@swan.doc.ic.ac.uk>
  6. Date: 28 Aug 92 16:20:03 GMT
  7. Organization: Department of Computing, Imperial College, University of London, UK.
  8. Lines: 24
  9. NNTP-Posting-Host: swan.doc.ic.ac.uk
  10.  
  11. I've got this Quintus prolog program and this C program and, quite
  12. unreasonably really, I want them to `talk' to each other.
  13.  
  14. However, the Quintus library predicate popen only allows me to get
  15. hold of one end of the pipe: I can either read from it or write
  16. to it, but not both.
  17.  
  18. Does anybody either (a) know of an easy way of doing both or (b) have
  19. a library package which exports predicates to do this.
  20.  
  21. Oh, and on top of that the C program writes its output to standard
  22. error (don't ask). So what I want is to be able to send stuff from
  23. my Quintus program through the pipe to the C program, and pick up 
  24. its output off standard error when its finished munging about with
  25. it.
  26.  
  27. Don't want much, do I? However, any help with this would be greatly
  28. appreciated. Thanks,
  29.  
  30. Jeremy
  31. --
  32. Jeremy Pitt, Department of Computing, Imperial College of Science, Technology
  33. & Medicine, Huxley Building, 180, Queen's Gate, London, England, SW7 2BZ.
  34. jvp@doc.ic.ac.uk    +44 71 589 5111 ext 4983
  35.