New User - Haven't solved perl script execution step..

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
bjpcjp
-


Joined: 26 Feb 2004
Posts: 1
Location: Austin, Texas

PostPosted: Fri Feb 27, 2004 12:12 am    Post subject: New User - Haven't solved perl script execution step.. Reply with quote

Hi everyone,
Another newbie here. Installed Perl & Abyss server packages verbatim from installation instructions (I think). Configured Abyss console to run basic perl scripts, but am still getting text of file returned to me. What other obvious problem areas come to mind?

Here's the script:
==============
#! c:\usr\bin\perl -w
# brian's first script to test abyss web server

print "Content-type: text/html \n\n";

print "<html>", "\n";
print "<head><title>About This Server</title></head>","\n";
print "<body><h1>About This Server</h1>","\n";
print "<hr><pre>";

print "Server Name:", $env{'SERVER_NAME'},"<br>","\n";
print "Running on Port:", $env{'SERVER_PORT'}, "<br>", "\n";
print "Server Software:", $env{'SERVER_SOFTWARE'}, "<br>", "\n";
print "Server Protocol:", $env{'SERVER_PROTOCOL'}, "<br>", "\n";
print "CGI Revision:", $env{'GATEWAY_INTERFACE'}, "<br>", "\n";

print "<hr></pre>","<br>","\n";
print "</body></html>","<br>","\n";

exit(0);
_________________
Brian Piercy
Program Manager
Motorola Semiconductor
Austin, TX
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Fri Feb 27, 2004 1:55 am    Post subject: Re: New User - Haven't solved perl script execution step.. Reply with quote

bjpcjp wrote:
#! c:\usr\bin\perl -w


I believe that may be your problem. Although Abyss is set by default not to find the interpreter by that line, I suggest you try setting it to something like "#!/Perl" (which is what I do). Also, try to use a script that someone else wrote, and is popular; (I have nothing against your scripts, however popular ones are known to usually work).
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Axis
-


Joined: 29 Sep 2003
Posts: 336

PostPosted: Fri Feb 27, 2004 5:49 am    Post subject: Reply with quote

Hi--

I believe the newest version of Abyss will default all shebang lines starting with:
#!
to the Perl interpreter if the line in server configuration/advanced/cgi parameters "Resolve interpreter using the script's #! line?"
is set to "yes" and the CGI Interpreters setting is defined.

(me thinks this is a very cool feature of Abyss!)

Regards,
Axis
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Feb 27, 2004 9:30 pm    Post subject: Re: New User - Haven't solved perl script execution step.. Reply with quote

bjpcjp,

If you can't solve the problem, please send the script and your abyss.conf file to support@aprelium.com . We'll see what's wrong with your configuration.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group