🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #741

Pipes in Quintus

#741
From: Jeremy Pitt
Date: Fri, 28 Aug 1992 16:20
24 lines
1386 bytes
I've got this Quintus prolog program and this C program and, quite
unreasonably really, I want them to `talk' to each other.

However, the Quintus library predicate popen only allows me to get
hold of one end of the pipe: I can either read from it or write
to it, but not both.

Does anybody either (a) know of an easy way of doing both or (b) have
a library package which exports predicates to do this.

Oh, and on top of that the C program writes its output to standard
error (don't ask). So what I want is to be able to send stuff from
my Quintus program through the pipe to the C program, and pick up 
its output off standard error when its finished munging about with
it.

Don't want much, do I? However, any help with this would be greatly
appreciated. Thanks,

Jeremy
--
Jeremy Pitt, Department of Computing, Imperial College of Science, Technology
& Medicine, Huxley Building, 180, Queen's Gate, London, England, SW7 2BZ.
jvp@doc.ic.ac.uk    +44 71 589 5111 ext 4983
Technical Details
Message-ID: <17ljnjINNlbo@swan.doc.ic.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!daresbury!doc.ic.ac.uk!doc.ic.ac.uk!not-for-mail

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!daresbury!doc.ic.ac.uk!doc.ic.ac.uk!not-for-mail
From: jvp@doc.ic.ac.uk (Jeremy Pitt)
Newsgroups: comp.lang.prolog
Subject: Pipes in Quintus
Message-ID: <17ljnjINNlbo@swan.doc.ic.ac.uk>
Date: 28 Aug 92 16:20:03 GMT
Organization: Department of Computing, Imperial College, University of London, UK.
Lines: 24
NNTP-Posting-Host: swan.doc.ic.ac.uk