Lisp executed code does not print things. This is the REPL. To print stuff use PRINT in your code and supply an output stream. I think all your problems stem from an improper redirection of *standard-output*. You are only seeing what comes out in the error output (i.e. debug statement from LOAD), while Apache is redirecting your standar output to /dev/null, or viceversa. I do not know enough from modules to say it for sure, but the fact that your use of LOAD only produces that statement suggests it.<br>
<br>Juanjo<br><br><div class="gmail_quote">On Mon, Jul 5, 2010 at 6:20 PM, Louis Höfler <span dir="ltr"><<a href="mailto:louis.hoefler@gmx.de">louis.hoefler@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="DE">
<div>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">Thank
you.</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">I
implemented this function</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p class="MsoNormal" style=""><span style="font-size: 9.5pt; font-family: Consolas;" lang="EN-US">cl_object mod_ecl_load(<span style="color: blue;">char</span>* src) {</span></p>
<p class="MsoNormal" style=""><span style="font-size: 9.5pt; font-family: Consolas;" lang="EN-US">cl_object string, stream;</span></p>
<p class="MsoNormal" style=""><span style="font-size: 9.5pt; font-family: Consolas;" lang="EN-US">string =
make_simple_base_string(src);</span></p><div class="im">
<p class="MsoNormal" style=""><span style="font-size: 9.5pt; font-family: Consolas;" lang="EN-US">stream =
cl_make_string_input_stream(1, string);</span></p>
</div><p class="MsoNormal" style=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">return</span><span style="font-size: 9.5pt; font-family: Consolas;"> cl_load(1, stream);</span></p>
<p class="MsoNormal" style=""><span style="font-size: 9.5pt; font-family: Consolas;">}</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";" lang="EN-US">But
this does only print out</span></p>
<p class="MsoNormal"><span><span lang="EN-US">#</span></span><span><span lang="EN-US"><</span></span><span><span lang="EN-US">string</span></span><span><span lang="EN-US">-</span></span><span><span lang="EN-US">input</span></span><span><span lang="EN-US"> </span></span><span><span lang="EN-US">stream</span></span><span><span lang="EN-US"> </span></span><span><span lang="EN-US">from</span></span><span><span lang="EN-US"> </span></span><span><span lang="EN-US">"(defun hello-wor..."</span></span><span><span lang="EN-US">></span></span><br>
</p></div></div></blockquote></div><br>This should not be printed by itself, but in a message like<br><br>;;; Loading #<string-input stream from ...><br><br>do you print manually the output of mod_ecl_load()?<br><br>
Juanjo<br clear="all"><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a><br>