Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Closed Thread
Old 02-21-2006, 11:21 PM CGI/PERL HELP
DJA
DJA's Avatar
Skilled Talker

Posts: 87
Trades: 0
Im tring to run a script:

#!--path to python.exe(censored)--
print "Content-type: text/html\n\n";
print "<link rel=stylesheet href=style.css>";
print "<center>\n";
print "<span class=span0><span class=span1>\n";
print "<b>Mod_Perl is working fine</b>\n";
print "<br><br>\n";
print "<b>server software : </b>$ENV{'SERVER_SOFTWARE'}\n";
print "<br><br>\n";
print "<b>client software : </b>$ENV{'HTTP_USER_AGENT'}\n";
print "<br><br>\n";
print "<b>http referer : </b>$ENV{'HTTP_REFERER'}\n";
print "<br><br>\n";
print "<b>opened file : </b>$ENV{'SCRIPT_FILENAME'}\n";
print "<br><br>\n";
print "<b>server adress :</b>$ENV{'HTTP_HOST'}\n";
print "<br><br>\n";
print "<b>your adress : </b>$ENV{'REMOTE_ADDR'}\n";
print "</span></span>\n";
print "<br>\n";

print "<table width=88% class=table border=0 cellpadding=4 cellspacing=1>\n";
print "<tr><td class=tdark ><b>Server Variable</b></td><td class=tdg ><b>Value</b></td></tr>\n";

foreach $var (sort(keys(%ENV))) {
$val = $ENV{$var};
$val =~ s|\n|\\n|g;
$val =~ s|"|\\"|g;
print "<tr><td class=tdd><font size=-1>${var}</font></td>\n";
print "<td class=tdl><font size=-1>${val}&nbsp;</font></td></tr>\n";
}

print "</table></p></font>\n";

print "</center>Written by Vlad Alexa Mancini</html>\n";
exit;

and it gives me this error:

couldn't create child process: 720021: index.cgi
or
couldn't create child process: 720021: index.pl

depending on what I named it.
Can someone out there help me??!?!?!
__________________

Please login or register to view this content. Registration is FREE
DJA is offline
View Public Profile Visit DJA's homepage!
 
 
Register now for full access!
Old 02-22-2006, 07:56 PM Re: CGI/PERL HELP
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
Your script works fine, be sure you have #!/usr/bin/perl at the top of the script, or whatever the path to perl is on your server.

You make reference to the python.exe, but your script is in perl, maybe that is your problem.
Anacrusis is offline
View Public Profile
 
Old 02-22-2006, 10:19 PM Re: CGI/PERL HELP
DJA
DJA's Avatar
Skilled Talker

Posts: 87
Trades: 0
I'm running apache2triad, and they said to use:#!f:/apache2triad/python/bin/python.exe
__________________

Please login or register to view this content. Registration is FREE
DJA is offline
View Public Profile Visit DJA's homepage!
 
Closed Thread     « Reply to CGI/PERL HELP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24917 seconds with 12 queries