Ok, thanks a lot Stefano. <br>
Maybe it will be possible in future? ;-) Maybe in the future kl1 will be similar to &quot;plugins&quot; linkled to kloned daemon?<br>
<br>
Have a good day.<br>
Mauro<br><br><div class="gmail_quote">2009/6/5 Stefano Barbato <span dir="ltr">&lt;<a href="mailto:barbato@koanlogic.com" target="_blank">barbato@koanlogic.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Mauro,<br>
<br>
running .kl1 pages skipping the compilation phase is not possible; KLone translates .kl1 pages into C source files that get compiled and linked to the acutal kloned binary file. When you add/remove or modify a .kl1 you must recompile the daemon.<br>

<font color="#888888">
<br>
stefano</font><div><div></div><div><br>
<br>
<br>
On 04/giu/09, at 16:47, ripar wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks Stefano, I&#39;m going to try and yes, i&#39;m using foxboard.<br>
<br>
Just a question: by your example kl1 dynamic pages are embedded in kloned at compilation time, right? Instead, I would like to use Klone as a pure web server and call the dynamic kl1 pages at runtime, as normal cgi written in perl, php or someone else.....<br>


<br>
In fact, I would like to change dynamic pages and avoid to recompile kloned all the times.<br>
<br>
I hope it is possible....<br>
<br>
Bye<br>
Mauro<br>
<br>
<br>
<br>
2009/6/4 Stefano Barbato &lt;<a href="mailto:barbato@koanlogic.com" target="_blank">barbato@koanlogic.com</a>&gt;<br>
Hi Mauro,<br>
<br>
Are you working on a Fox board right?<br>
<br>
The attached klone-app is an example (for the foxboard but you can change the target platform modifying the MAKL_PLATFORM var in the top-level Makefile) that should suit your needs.<br>
<br>
this is how you can build the example app:<br>
<br>
- source the foxboard environment file<br>
      cd /path/to/devboard-R2_01 &amp;&amp; . init_env<br>
<br>
- untar the attached package somewhere<br>
      tar zxvf mauro-fox.tar.gz<br>
      cd mauro-fox<br>
<br>
- build klone<br>
      make<br>
<br>
- copy the kloned binary, the configuration file (kloned.conf) and the www/ directory (static files) in /mnt/flash<br>
<br>
- make &#39;kloned&#39; executable<br>
      chmod +x /mnt/flash/kloned<br>
<br>
- telnet into the fox and start kloned<br>
      /mnt/flash/kloned -f /mnt/flash/kloned.conf<br>
<br>
- try it out<br>
      <a href="http://fox:8080/" target="_blank">http://fox:8080/</a><br>
<br>
If you want to modify the application remember that:<br>
<br>
- all static files go in /mnt/flash/www<br>
- dynamic pages (.kl1) go in the webapp/kl1 directory (on the development machine); after that you must recompile and reinstall &#39;kloned&#39;<br>
<br>
stefano<br>
<br>
<br>
<br>
On 04/giu/09, at 14:23, ripar wrote:<br>
<br>
Hi to all,<br>
I&#39;m really going mad.  I&#39;ve two file: index.html e prova.kl1, that I want to call as a simple CGI. In fact, I would like to use klone as a normal web server but i want to keep the C language power for scripting.<br>


<br>
<br>
----------------------- Index.htm -------------------------------<br>
&lt;HTML&gt;<br>
&lt;BODY&gt;<br>
<br>
BLA....BLA.....BLA<br>
<br>
&lt;FORM METHOD=&quot;GET&quot; ACTION=&quot;cgi/prova.kl1&quot;&gt;<br>
&lt;p&gt;Type something here: &lt;INPUT NAME=&quot;nameoffield&quot;&gt;&lt;/p&gt;<br>
&lt;p&gt;INPUT TYPE=&quot;SUBMIT&quot;&gt;&lt;/p&gt;<br>
&lt;/FORM&gt;<br>
<br>
&lt;/BODY&gt;<br>
&lt;/HTML&gt;<br>
<br>
------------------ prova.kl1-------------------------<br>
#!/mnt/flash/klone<br>
<br>
<br>
&lt;body&gt;<br>
PROVA 10<br>
&lt;%<br>
    io_printf(out, &quot;PIPPO&quot;);<br>
<br>
  DIR *dirp;<br>
  struct dirent *dp;<br>
<br>
  dirp = opendir(&quot;/&quot;);<br>
  while ((dp = readdir(dirp)) != NULL)<br>
      io_printf(out, &quot;&lt;li&gt;%s&lt;/li&gt;&quot;, dp-&gt;d_name);<br>
  closedir(dirp);<br>
%&gt;<br>
<br>
&lt;/body&gt;<br>
---------------------------------<br>
<br>
I&#39;ve compiled with --install_daemon_only e --ebable_sup_cgi, but when I call the script the resulting page it&#39;s always blank. Which interpreter I&#39;ve to use (klone?)? Is it native the c language interpretation?<br>


<br>
Please, I&#39;m really going mad..... can give some working example?<br>
<br>
Thanks a lot<br>
Mauro<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
2009/6/3 ripar &lt;<a href="mailto:riparz@gmail.com" target="_blank">riparz@gmail.com</a>&gt;<br>
Hello Thomas,<br>
thanks a lot for your info. I&#39;ve compiled the kloned deamon as your indication and changed the kloned.conf file. Anyway, I can see simple html files but when I tray to call a kl1 file the only one i can see is a blank page.<br>


<br>
Do you have some example of kl1 files usage?<br>
<br>
Thanks a lot<br>
Mauro<br>
<br>
2009/6/3 thomas fossati &lt;<a href="mailto:tho@koanlogic.com" target="_blank">tho@koanlogic.com</a>&gt;<br>
<br>
Hi Mauro,<br>
<br>
<br>
On Jun 2, 2009, at 6:18 PM, ripar wrote:<br>
I would like tu use C code (in Kl1 file) ad simple (and not embedded) cgi script. To do this, I&#39;ve compiled the klone as act as a normal web server. Is it possible?<br>
<br>
<br>
yes, you need to add &quot;KLONE_CONF_ARGS += --enable_sup_cgi&quot; to your Makefile and a minimal &quot;cgi&quot; section to the backend configuration in your kloned.conf file (see klone-2.2.0/build/target/klone-core-2.2.0/etc/kloned-cgi.conf).<br>


<br>
ciao, t.<br>
<br>
_______________________________________________<br>
Klone-users mailing list<br>
<a href="mailto:Klone-users@koanlogic.com" target="_blank">Klone-users@koanlogic.com</a><br>
<a href="http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users" target="_blank">http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users</a><br>
<br>
<br>
_______________________________________________<br>
Klone-users mailing list<br>
<a href="mailto:Klone-users@koanlogic.com" target="_blank">Klone-users@koanlogic.com</a><br>
<a href="http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users" target="_blank">http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users</a><br>
<br>
_______________________________________________<br>
Klone-users mailing list<br>
<a href="mailto:Klone-users@koanlogic.com" target="_blank">Klone-users@koanlogic.com</a><br>
<a href="http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users" target="_blank">http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users</a><br>
<br>
<br>
_______________________________________________<br>
Klone-users mailing list<br>
<a href="mailto:Klone-users@koanlogic.com" target="_blank">Klone-users@koanlogic.com</a><br>
<a href="http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users" target="_blank">http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users</a><br>
</blockquote>
<br>
<br>
_______________________________________________<br>
Klone-users mailing list<br>
<a href="mailto:Klone-users@koanlogic.com" target="_blank">Klone-users@koanlogic.com</a><br>
<a href="http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users" target="_blank">http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users</a><br>
</div></div></blockquote></div><br>