• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Noob stuck with Perl/CGI

CrackaLackaZe

Senior member
I have blahblah.cgi in the cgi-bin directory.

The chmod is set to 755.

The perl command line is correct.

perl -wc blahblah.cgi reports syntax OK


It's a simple scipt with the following code:



Any one know how to make the server error 500 go away?


 
Bad interpreter line.

#!usr/bin/perl should be #!/usr/bin/perl (or possibly #!/usr/local/bin/perl).
 
Originally posted by: CrackaLackaZe
Originally posted by: xcript
Bad interpreter line.

#!usr/bin/perl should be #!/usr/bin/perl (or possibly #!/usr/local/bin/perl).

ok I changed that, but it still wont work.

Make sure your newlines match the OS you're running the script on. If you write the file on windows and then transfer it to a unix machine in binary mode, it won't necceesarily run. Make sure you're using unix newlines if you've got a unix server.
 
w00t, I got it to work, thanks guys...it was the #!/usr/bin/perl line that did it. I just had another little thing I added to the code that wasn't in the original post and it worked after I removed that.
 
Back
Top