Re: beginner CGI error

by jim <jim(at)newglobal.net>

 Date:  Fri, 19 Jan 2001 22:29:06 -0600
 To:  CHarris(at)checkfree.com,
hwg-servers(at)hwg.org
 In-Reply-To:  ckfr
  todo: View Thread, Original
Is #! /usr/bin/perl not a typo?

I think it should be  #!/usr/bin/perl, or #!/usr/bin/local/perl depending 
on "which perl".  In other words, no space between #! and /usr/.....

As a first resort I try to execute the script from the command line 
realizing that I'll probably get more in the way of error messages without 
having to go to the bother of "last -10 /www/logs/_-error-log "

Jim

At 05:32 PM 1/19/01 -0600, CHarris(at)checkfree.com wrote:
>i'm getting the following messages when i attempt to execute script from
>site:
>
>"(8)Exec format error"
>"Premature end of script"
>
>script is coded as follows:
>
>#! /usr/bin/perl
>#srvrinfo.plx
>use strict;
>use warnings;
>
>print "Content-type: text/plain\n\n";
>print "Please wait for Script to execute...\n";
>
>open (IX,'df |');
>while (<IX>)
>  {
>     chop $_;
>     print "$_\n";
>  }
>close (IX);
>
>environment:  apache 1.3 | perl 5.6.0 | SunOS 5.7
>
>thanks in advance,
>
>
>Chris Harris, MCSE
>Staff Technical Analyst
>Transmissions Implementations
>512-377-6170

HWG: hwg-servers mailing list archives, maintained by Webmasters @ IWA