a couple of questions:

are your scripts in a cgi-bin directory?
did you make your scripts executable?  ( chmod +x filename.pl )
is the path correct?  

Not all systems have perl in /usr/bin/perl.  From the command line type
% which perl
and that will give you the path to specify in the first line of your perl
file
ie.
#!/public/bin/perl -w

hope that helps.

Jon

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 3:13 PM
To: [EMAIL PROTECTED]
Subject: Perl CGI (Getting started.)


Hi:

I am trying to learn Perl CGI but I am having a hard time finding a server
that I can run scripts on and then getting them to run.  My brother has a
web server and was
 going to let me log on and put some scripts into a directory and run them.
I couldn't get them to run, I just got the text echoed back to my browser,
some interpreted as HTML but definitely not running it.  I asked him what
was wrong and he sent me this:

"I had perl running on my Linux server under apache. The problem was 
that the new httpd daemon I created thrashed the appearance of some 
other stuff I was hosting. Fortunately I had a back up."

I certainly don't want to interfere with the business he's running, but it
was exciting to have that available but now I don't have any idea how or
where to test a Perl CGI script.  I want to open "My_Script.pl" or
"My_Script.cgi" in a browser and actually see output from a running script.
The scripts I am starting with are very elementary examples from perl books.


Any help about how to test a CGI script (or better, fix my brother's
problem) will be greatly appreciated. 

Thanks,


Gregg R. Allen
62 TW Alexander Dr
Research Triangle Park, NC. 27709

Blessed are they who expect nothing, 
for they shall not be disappointed.

F. Nietzsche

Reply via email to