In the
http://www.jsoftware.com/svn/web/trunk/cgi/cgi.ijs
script there are a few references to y. that need to be changed to y for
j601

In
http://www.jsoftware.com/jwiki/Guides/CGI
there is a sentence

"If this does not work, you should check file permissions to ensure that the
web server has access, and also check the server log."

What I get is that when I press "run" button I am asked if I want to open
the file test.cgi with a text editor.

What server log am I supposed to look at?

I can run the test.cgi fine but not from the browser "run" button except it
displays the time ok but the next line is
[EMAIL PROTECTED]:/usr/lib/cups/cgi-bin> ./test.cgi
Content-type: text/html

<html><body><pre>
2007 2 18 7 40 47.648
+++
|||
+++

suse10:/usr/lib/cups/cgi-bin # cat test.cgi
#!/bin/sh
/home/bh/j601/jconsole -jprofile /home/bh/j601/user/cgitest/cgi.ijs

185616 -rwxr-xr-x  1 root root    79 Feb 17 16:01 test.cgi

The "run" button displays a pop up saying "you have chosen to  open
test.cgi
which is a: CGI script
from: /usr/lib/cups/cgi-bin
what should Firefox do with this file?

suggestion "open with text editor and no other options.

If I choose ok the text editor displays the file test.cgi fine

What am I doing wrong here?

This is my first attempt at doing cgi from J

I think  the  jhp/cgi/xml/web thing looks exciting and am interested in
getting this going.

--
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