Loading ...
Sorry, an error occurred while loading the content.
 

CGI FOLLOW-UP

Expand Messages
  • ttsui2001
    Hello Steve: I m back! Thanks for your reply! It is still not working! This is the info for you to look at. In my /tmp/plcgi_err file it said cgi var
    Message 1 of 2 , Aug 1 2:27 PM
      Hello Steve:
      I'm back! Thanks for your reply!
      It is still not working!
      This is the info for you to look at.
      In my /tmp/plcgi_err file it said "cgi var SCRIPT_FILENAME not
      found"

      I'm using Solaris 2.8(Sun OS 5.8) Netscape Suitespot 3.63 and
      Ploticus 2.04

      The config file is:
      projectroot: /usr/netscape/suitespot/docs/tomt/ploticus
      setenv:
      PLOTICUS_PREFABS=/usr/netscape/suitespot/docs/tomt/ploticus/prefabs

      My html file:
      <html>
      <body>
      <img src="/cgi-bin/pl?cgi=1&price.pl&-gif">
      </body>
      </html>

      My script file(price.pl is located in:
      (/usr/netscape/suitespot/docs/tomt/ploticus)

      Also as my understanding, the SCRIPT_FILENAME will be my:
      /cgi-bin/pl which is not founding now. But even if it
      see it, how will the web trigger or found the config file.

      Thank you in advance!
      - Tom
    • Stephen C. Grubb
      Tom, SCRIPT_FILENAME, when it is available, is supposed to contain the unix pathname (not the URL) of the CGI program, and it is set by most web servers that I
      Message 2 of 2 , Aug 2 4:30 AM
        Tom,

        SCRIPT_FILENAME, when it is available, is supposed to contain the unix
        pathname (not the URL) of the CGI program, and it is set by most web
        servers that I know of, but apparently not by all of them. I had thought
        it was part of the standard CGI spec, but upon checking again, I see that
        it isn't.

        SCRIPT_NAME contains the URL pathname of the CGI program, and it _is_
        required by the standard CGI spec.

        Unless you want to hack the source code, you're out of luck.. ploticus
        must have SCRIPT_FILENAME, in order to locate your config file (which in
        your case should be in the cgi-bin directory and named 'pl.cnf').

        I will try to come up with a way around this for the next release.

        In the meantime, if you're interested in modifying your source code, you
        can probably get it to work by locating SCRIPT_FILENAME and hard-coding
        your unix pathname of pl (maybe something like /data/htdocs/cgi-bin/pl);
        then do make clean; make

        -Steve




        On Thu, 1 Aug 2002, ttsui2001 wrote:

        > Hello Steve:
        > I'm back! Thanks for your reply!
        > It is still not working!
        > This is the info for you to look at.
        > In my /tmp/plcgi_err file it said "cgi var SCRIPT_FILENAME not
        > found"
        >
        > I'm using Solaris 2.8(Sun OS 5.8) Netscape Suitespot 3.63 and
        > Ploticus 2.04
        >
        > The config file is:
        > projectroot: /usr/netscape/suitespot/docs/tomt/ploticus
        > setenv:
        > PLOTICUS_PREFABS=/usr/netscape/suitespot/docs/tomt/ploticus/prefabs
        >
        > My html file:
        > <html>
        > <body>
        > <img src="/cgi-bin/pl?cgi=1&price.pl&-gif">
        > </body>
        > </html>
        >
        > My script file(price.pl is located in:
        > (/usr/netscape/suitespot/docs/tomt/ploticus)
        >
        > Also as my understanding, the SCRIPT_FILENAME will be my:
        > /cgi-bin/pl which is not founding now. But even if it
        > see it, how will the web trigger or found the config file.
        >
        > Thank you in advance!
        > - Tom
        >
        >
        >
        >
        >
        >
        >
        >
        > To unsubscribe from this group, send an email to:
        > ploticus-unsubscribe@yahoogroups.com
        >
        >
        >
        > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
        >
        >
        >


        Stephen C. Grubb scg@...
        Scientific Software Engineer, The Jackson Laboratory
        600 Main Street Bar Harbor, Maine 04609 USA
      Your message has been successfully submitted and would be delivered to recipients shortly.