J
jbermudes
I am trying to run a script in unix by saying ./form.pl but it always
gives me an error saying "Command not found." However, I can say perl
form.pl and the script will execute properly. I have been assured by my
Network admin that the permissions are set correctly and that perl is
located in the right location and that the include file is also
properly set and located.
The script is:
#!/usr/bin/perl
push(@INC,"/www/cgi-bin");
require ("cgi-lib.pl");
&ReadParse;
print &PrintHeader;
open(MAIL, "|mail bermu103\@chapman.edu");
print MAIL "From: ",$in{'email'},"\n";
print MAIL "Subject: Comments/Suggestions\n";
print MAIL "Name: ",$in{'name'},"\n";
print MAIL "Text: ",$in{'text'},"\n";
print MAIL "\n\n";
close MAIL;
print "<HTML><HEAD><TITLE>Feedback Response </TITLE></HEAD>\n";
print "<BODY BGCOLOR=#FFFFF0>
<CENTER>
<H3>Form Processed</H3>
<B>
<P>Your feedback has been accepted.</P>
<P>
<A
HREF="http://www.chapman.edu/~bermu103/courses/cpsc353/index.html">Return</A><BR>
</P>
</B>
</BODY></HTML>";
Any suggestions of what could be wrong would be much appreciated!
Thanks
gives me an error saying "Command not found." However, I can say perl
form.pl and the script will execute properly. I have been assured by my
Network admin that the permissions are set correctly and that perl is
located in the right location and that the include file is also
properly set and located.
The script is:
#!/usr/bin/perl
push(@INC,"/www/cgi-bin");
require ("cgi-lib.pl");
&ReadParse;
print &PrintHeader;
open(MAIL, "|mail bermu103\@chapman.edu");
print MAIL "From: ",$in{'email'},"\n";
print MAIL "Subject: Comments/Suggestions\n";
print MAIL "Name: ",$in{'name'},"\n";
print MAIL "Text: ",$in{'text'},"\n";
print MAIL "\n\n";
close MAIL;
print "<HTML><HEAD><TITLE>Feedback Response </TITLE></HEAD>\n";
print "<BODY BGCOLOR=#FFFFF0>
<CENTER>
<H3>Form Processed</H3>
<B>
<P>Your feedback has been accepted.</P>
<P>
<A
HREF="http://www.chapman.edu/~bermu103/courses/cpsc353/index.html">Return</A><BR>
</P>
</B>
</BODY></HTML>";
Any suggestions of what could be wrong would be much appreciated!
Thanks