On 4/7/07, Björn Helgason <[EMAIL PROTECTED]> wrote:
I have spent some time on geting jhp working
I have got cgi working and am beginning to get the ang of what goes where
but there are many loose ends

As a debugging step, I'd be tempted to try something like this:

#!/bin/sh
echo Content-type: text/plain
echo
echo Username=`whoami`
echo 1+1 | /srv/www/j601/jconsole
echo Done.

If that fails, the problem is that you are not calling J right --
either your web server does not allow access to that part
of your file system, or you have a problem with an environmental
variable, or something of that nature.

If that succeeds, then the problem is some other aspect of
your web server's configuration.

As an aside, if that test script works you could just use J
in a shell script.  Like this:

#!/bin/sh
echo Content-Type: text/html
echo
<<END /srv/www/j601/jconsole

... j code goes here...

END

You will get J's prompt scattered throughout
the result, but as extra whitepsace is
ignored in HTML, this should not matter very
much.  (It matters in <PRE> but you can emit
<PRE> blocks in complete form and you should
be all right.)

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to