in reply to Re: Re: Re: Re: Re: Re: Re: code problem
in thread code problem

<html> <body>

print p("This script runs as `id`");

In what place I should add this line in test code? Is this important?

sandal </body> </html>
  • Comment on Re: Re: Re: Re: Re: Re: Re: Re: code problem

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Re: Re: Re: code problem
by blue_cowdawg (Monsignor) on Jul 23, 2003 at 12:56 UTC

      In what place I should add this line in test code? Is this important?

    Someplace between print start_html; ... print end_html;

    Other than that, whereever you want it to appear in your finished HTML.


    Peter L. BergholdBrewer of Belgian Ales
    Peter@Berghold.Netwww.berghold.net
    Unix Professional

      I try code on this host and get error: "The server encountered an internal error or misconfiguration and was unable to complete your request."
      I try code also on another similar host (they use Unix IBM AIX and IBM RS/6000) and get error:
      Software error: Execution of /host/h/e/l/p/o/r/subdomain.com/cgi-bin/testscript.cgi aborted due to compilation errors.

      sandal

        Sandal,

        Try downloading the tar/gz I have just created for you on my website here.

        Instructions: read and follow carefully

        1. Download the tar/gz above.
        2. Extract the Perl script that it contains.
        3. Upload it to your site
        4. chmod 755 the script
        5. Run it.

        If this script (which I just verified works) does not run on your site the following problems may exist:

        • The full path to the Perl interpreter may be wrong in the shebang line. Find out what the path really is (/usr/local/bin/perl? /usr/local/software/perl/bin?) and change the shebang line according and try again.
        • The CGI and/or CGI::Carp modules don't exist on your system. If that's the case try removing the CGI::Carp directive and try again. If that don't work then that's just bad Ju-Ju. See if the hosting site has a HOWTO on working CGI on their site or find a hosting site with a clue.
        • The version of Perl they are running on the hosting site is hopelessly antiquated. Find a new site.


        Peter L. BergholdBrewer of Belgian Ales
        Peter@Berghold.Netwww.berghold.net
        Unix Professional

        Code tags - dvergin 2003-07-23