mwhiting Posted December 13, 2010 Posted December 13, 2010 Hi - I just signed up for heliohost, and I've gotten logged into the file manager today for the first itme. I have a perl script I'm trying to run, and it doesn't want to. It's a simple test screipt that I thought shouldn't have any problems, so any help you can offer would be greatly appreciated. The script is at: http://mwhiting.heliohost.org/cgi-bin/test.cgi All it contains is: #!/usr/bin/perl print "Hello World.\n"; Permissions are set to 755, I can't see what else is the problem. Michael Quote
Byron Posted December 13, 2010 Posted December 13, 2010 It needs an html header. #!/usr/bin/perl print "Content-type: text/html\n\n"; print "Hello World.\n"; Or try this and then look at the source code: #!/usr/bin/perl -w use CGI ':standard'; print header, start_html('My Hello World'), h1('My Hello World'), "Hello World", hr, end_html; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.