I have tcl 8.2.3 with tclhttpd 3.0.3 and SICStus Prolog 3.8.2 on my Windows
98 machine, and the same packages & versions on a UNIX machine too.

To use Prolog and TCL together with TCL as the master and Prolog the slave,
SICStus suggest starting Prolog first, set everything up there that I need
to, then spawn the tcl process and pass control over. TCL can then call
Prolog predicates with the command "prolog {blah}".

(For more details, go to
http://www.sics.se/isl/sicstus/docs/latest/html/sicstus.html#How%20to%20use%
20the%20Tcl%2fTk%20library and search for "Node:Tcl the master" in the
text").

The tcl-httpd works fine, as does SICStus by itself, but when I try to make
Prolog spawn httpd, it gets half way through the process then falls over and
says:

| ?- go.
{TCL ERROR: tcl_eval/3 - Error processing main startup script "e:\My
Download Files\TCL TK
stuff\tclhttpd3.0.3-dist\tclhttpd3.0.3\bin\httpdthread.tcl".
can not find channel named "stdout"
    while executing
"puts "No .htaccess support: $err""
    invoked from within
"if {[catch {
    Auth_AccessFile     .htaccess       ;# Enable Basic Auth
} err]} {
    puts "No .htaccess support: $err"
}"
    (file "e:/My Download Files/TCL TK
stuff/tclhttpd3.0.3-dist/tclhttpd3.0.3/bin/httpdthread.tcl" line 126)
    invoked from within
"source $Config(main)"}
| ?-

I have tried starting httpd from wish with "source e:/..../tclhttpd.tcl" and
it's fine.

Any suggestions, please? Thanks in advance for the help.


Tim Morley

Reply via email to