You forgot a "/" before the # on first line...

so your:  #!usr/bin/perl -wT
has 2 be: > #!/usr/bin/perl -wT
(the command line interperter)

:)

Regards,
Bjorn


----- Original Message ----- 
From: Valery Petruk <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 22, 2001 12:41 PM
Subject: Cannot run my first CGI-script


> Hi,
> I am trying to run my first CGI-script on my remote host. The script
> have been taken from Ovid guide -
> http://www.easystreet.com/~ovid/cgi_course/index.html
> and should provide output of errors to the browser (IE 5.0 or
> Netscape), but besides annoying 500 Internal Server mistake I could
> not get anything, after trying it's url in browser
> (http://208.56.78.155/cgi-bin/time.cgi );
> 
> #!usr/bin/perl -wT
> BEGIN {
>     $|=1;
>     print "Content-type: text/html\n\n";
>     use CGI::Carp qw(fatalsToBrowser);
> }
> 
> use strict;
> use diagnostics;
> use CGI;
> 
> my $query = new CGI;
> 
> print $query->header( "text/html" );
> 
> my $time = localtime;
> 
> print <<END_HERE;
> <html><head><title>This is the time</title></head>
> <body bgcolor="#ffffcc">
> <h1>This is a another lame Web page</h1>
> <p>
> The time is $time
> </body></html>
> END_HERE
> # comment 1
> # comment 2
> 
> 
> I've upload it in ASCII mode, set permission rwxr-xr-x,
> server path to Perl5 is: /usr/bin/perl
> 
> I've copied some additional info  from access log which is available
> for my account:
> 
> 212.119.102.144 - - [21/Oct/2001:08:45:03 -0400] "GET
> /cgi-bin/time.cgi HTTP/1.0" 500 533 "-" "Mozilla/4.51 [en] (Win98; I)"
>  
> and for similar test.cgi 
> 
> 212.119.102.144 - - [21/Oct/2001:08:46:00 -0400] "GET
> /cgi-bin/test.cgi HTTP/1.1" 500 545 "-" "Mozilla/4.0 (compatible; MSIE
> 5.0; Windows 98; DigExt)"
> 
> Also, I have tried to run it from shell, 
> >perl -T time.cgi and >perl -Td time.cgi  
> 
> but when it creates 
> >my $query = new CGI;
> 
> then it awaits some input :
> 
> (offline mode: enter name=value pairs on stdin input)
> 
> And do not know what to try the next. 
> This is not the situation when host's support gives any explanations
> or help  by e-mail or phone. 
> 
> Hope, somebody from [EMAIL PROTECTED] could help and give some
> advises.
> 
> Best regards
> V.Petruk 
> http://208.56.78.155
> 
> 
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to