[Xitami] ssi/cgi weirdness

niall munnelly xitami@lists.xitami.org
Fri, 31 May 2002 15:30:34 -0500


hello - 

here's me:

Xitami Web Server v2.5b4
beos r5
pentium ii 400 mhz
384 mb ram


i ran into a few snags with ssi and cgi stuffs today, maybe someone here can
help (i'd sure be appreciative)...

i've enabled the #exec function of SSI and it kicks out my little cgi program
nicely enough:

<!--#exec cgi="/cgi-bin/nowplaying.cgi"-->

playing now:
i am spoonbender - mr. knife, miss fork - sender-receiver


a duplicate page, using <!--#include virtual="/cgi-bin/nowplaying.cgi"-->
instead gives me this:

playing now:
#!/bin/sh

current=`/boot/home/config/bin/wget -O - -q
http://radio.vietnambla.com/nowplaying.html`
#echo Content-type: text/html
echo
echo $(echo $current | sed s/\/\ \-\ /g) echo


outputting the actual executable, rather than the expected results.


so there's part one.  part two:  

<!--#exec cmd="ls"--> (just for giggles, pwd doesn't work eother)

yields this in the webpage:

[xitami SSI: syntax error in #echo variable]


so, am i missing something here>

thanks in advance....


-- 
yours,
niall.
.. .  .   .    .     .       .           .             .                 .
aleph null.                             a simple insinuation around silence.
see: http://www.vietnambla.com	        hear: http://radio.vietnambla.com

.. .bebox.audio. ..
playing now:  swans - love of life - omniscience