From mc@ai.uga.edu Thu Jun  7 21:20:55 2001
Received: from aisun0.ai.uga.edu (aisun0.ai.uga.edu [128.192.12.8])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f57JKt311370
	for <prolog@swi.psy.uva.nl>; Thu, 7 Jun 2001 21:20:55 +0200 (MET DST)
Received: from pc18 (pc18.ai.uga.edu [128.192.12.18])
	by aisun0.ai.uga.edu (8.9.1/8.9.1) with ESMTP id PAA06468
	for <prolog@swi.psy.uva.nl>; Thu, 7 Jun 2001 15:20:53 -0400 (EDT)
Message-ID: <003201c0ef86$f81d4da0$120cc080@pc18>
From: "Michael A. Covington" <mc@ai.uga.edu>
To: <prolog@swi.psy.uva.nl>
Date: Thu, 7 Jun 2001 15:20:53 -0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Subject: [SWIPL] eof_action of current input stream

OK, another question relating to CGI scripting.

I've got SWI Prolog 4.05 running as a CGI script engine under Windows 2000's
web server.  So far so good.

Now I'm trying to get input into it using the POST method (i.e., standard
input).

Windows sends it a string that does not end with an end-of-line mark.

And the eof_action for console input is eof_action(reset), so I can't detect
the end-of-file condition -- instead, SWI Prolog waits forever for more
characters to be typed.

And under Windows 2000, a script does not have permission to
open('CON',.....) the way an ordinary application does.

So... Is there a way to change the eof_action of the console that is already
open?

Many thanks,


Michael A. Covington, Associate Director
Artificial Intelligence Center / The University of Georgia / Athens, GA
30602-7415 U.S.A.
http://www.ai.uga.edu/~mc     http://www.CovingtonInnovations.com    <><

