As I shown in my first message then the user is wwwrun and jconsole runs
fine
I am missing getting the  jhp example running

2007/4/7, Raul Miller <[EMAIL PROTECTED]>:

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




--
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
801 Grímsnes ,t-póst: [EMAIL PROTECTED]
Skype: gosiminn, gsm: +3546985532
Landslags og skrúðgarðagerð, gröfuþjónusta
http://groups.google.com/group/J-Programming


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
         /|_      .-----------------------------------.
        ,'  .\  /  | Með léttri lund verður        |
    ,--'    _,'   | Dagurinn í dag                     |
   /       /       | Enn betri en gærdagurinn  |
  (   -.  |        `-----------------------------------'
  |     ) |        (\_ _/)
 (`-.  '--.)       (='.'=)
  `. )----'        (")_(")
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to