scgiwrap: Caller must be uid 99

bonfire89

New Member
Messages
2
Reaction score
0
Points
0
Hello, I am recieving

scgiwrap: Caller must be uid 99


when I try and run this simple script


Code:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, World.";


I could use some guidance. Thanks :)
 

marshian

New Member
Messages
526
Reaction score
9
Points
0
I don't know anything about Perl, but "Content-type: text/html\n\n" looks a lot like a header, which should be send before any output (and I beleive this isn't right in this script, since you use print to send a header (?) and also your output.)
Also, HTML headers have to be separated by "\r\n", not by "\n\n".
 

woiwky

New Member
Messages
390
Reaction score
0
Points
0
The code looks fine, python doesn't output headers like php.

scgiwrap is Simple CGI Wrapper, which is available from the CGI Center. However, x10 apparently isn't set up to support it. You could bring this up in Free Hosting, but my advice would be to just not use scgi-bin for your scripts.
 

bonfire89

New Member
Messages
2
Reaction score
0
Points
0
yeeah, I know the code is fine, It's copied from the apache cgi setup test document, and it ran on my own computer.

Meh, it's free hosting, really, anyone who needs cgi shouldn't be on free hosting :p hehe I just wanted to see if the stuff I was doing locally could be moved.

Thanks guys!
 

wyedelta

New Member
Messages
1
Reaction score
0
Points
0
try to rewrite code like this.
--------------
#!/usr/bin/perl -w
print "Content-type: text/html \n\n";
print "Hello, World.";
---------------
There is "-w" added, and space after text/html. It should work
 
Top