From vbarr@cme.nist.gov Tue Jun 26 23:07:42 2001
Received: from dribble.cme.nist.gov (dribble.cme.nist.gov [129.6.32.31])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f5QL7Sc26512
	for <prolog@swi.psy.uva.nl>; Tue, 26 Jun 2001 23:07:33 +0200 (MET DST)
Received: from ultraman.msid.cme.nist.gov (ultraman.msid.cme.nist.gov [129.6.77.98])
	by dribble.cme.nist.gov (8.9.3/8.9.3) with SMTP id RAA28944
	for <prolog@swi.psy.uva.nl>; Tue, 26 Jun 2001 17:07:26 -0400 (EDT)
Message-Id: <200106262107.RAA28944@dribble.cme.nist.gov>
Date: Tue, 26 Jun 2001 17:07:25 -0400 (EDT)
From: Vincent Manuel Barrilliot <vbarr@cme.nist.gov>
Reply-To: Vincent Manuel Barrilliot <vbarr@cme.nist.gov>
To: prolog@swi.psy.uva.nl
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: by10GCvyQBRh8tE3+08efA==
X-Mailer: dtmail 1.2.1 CDE Version 1.2.1 SunOS 5.6 sun4u sparc 
Subject: [SWIPL] how to write on the standard error ?

Hello,

I was using SWI 4.0.6 with the Socket library and it worked quite fine but 
because it was more appropriate in my case, I am now using it through Java by 
redirecting its standard IO.

I find it very convenient that SWI-Prolog writes its answers on the stderr ! :-)
My problem is: how do I write >mine< ?
I have some predicates that need to return special things, and I want to write 
them on the standard error so that my Java program can read them.

I tried write( user, ... ) and write( 2, ... ) without success.

Thank you ! :-)

Vincent



