Testing perl script

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


Joined: 23 Nov 2002
Posts: 2

PostPosted: Sat Nov 23, 2002 9:53 am    Post subject: Testing perl script Reply with quote

When I try to open a test script in /cgi-bin, it starts to download instaed of showing the output. I followed the directions as given by abyss web-site for perl.
Help please
Back to top View user's profile Send private message
!Keys
-


Joined: 23 Nov 2002
Posts: 156
Location: Holland, Enschede

PostPosted: Sat Nov 23, 2002 6:59 pm    Post subject: Reply with quote

i donŽt know perl, but i think u havnŽt lead abyss to the right file, it looks like you havnŽt installed perl correctly, try it again, iŽll try it myself too :lol:
_________________
!Keys || MwM^computerware
Back to top View user's profile Send private message MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Nov 23, 2002 11:32 pm    Post subject: Reply with quote

!Keys wrote:
i donŽt know perl, but i think u havnŽt lead abyss to the right file, it looks like you havnŽt installed perl correctly, try it again, iŽll try it myself too :lol:

Please read our Perl installation guide at http://www.aprelium.com/abyssws/perl.html . If your problem persists, repost your question with more details.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
nChrisFrost
-


Joined: 27 Mar 2003
Posts: 2

PostPosted: Fri Mar 28, 2003 1:47 am    Post subject: Reply with quote

I have the same problem. I've read and followed the instructions, but getting the perl script to execute does not work. I've called the script (a simple 'Hello World') from an html page in htdocs, and it executes but in the ms command window that flashes and disappears. Dropping the perl file into a browser or calling via locating a file with the browser simply displays it as text.

Any help?
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Mar 29, 2003 1:26 am    Post subject: Reply with quote

nChrisFrost wrote:
I have the same problem. I've read and followed the instructions, but getting the perl script to execute does not work. I've called the script (a simple 'Hello World') from an html page in htdocs, and it executes but in the ms command window that flashes and disappears. Dropping the perl file into a browser or calling via locating a file with the browser simply displays it as text.

Any help?

Dropping a file in the browser doesn't invoke the script from the web server.
Browse http://127.0.0.1/scriptname.pl to run your script.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
nChrisFrost
-


Joined: 27 Mar 2003
Posts: 2

PostPosted: Tue Apr 01, 2003 4:02 am    Post subject: Reply with quote

Still no luck. I start the web server. My cgi has path /cgi-bin and /. My perl is in d:/bin/perl/perl.exe (build 5.8.0). I've set to use register and !# path. I have an index.htm file in the cgi-bin that is found from my test page in htdocs\test just fine using <a href=C:\Program Files\Abyss Web Server\cgi-bin\index.htm>test</a>. By the way, why does it require an absolute path? Shouldn't the path to the cgi be resolved to using just \cgi-bin\filename.pl?

I know the perl works in a ms command window. I've tested it with "perl howd.pl" and get the correct output. From html, I click the link from test.html and get Page not Found. I remove the !# perl path and I get

print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "
Hello World with Perl
\n"; print "
Howdy World\n"; print "\n"; print "\n";

The Hello World with Perl is <h1>Hello World with Perl</h1> in the file.

So, only one line is marked up. Any help? I suspect a configuration glitch.

Thanks,
Back to top View user's profile Send private message
goose
-


Joined: 17 Sep 2002
Posts: 608
Location: The Land Of OZ! come here toto!

PostPosted: Tue Apr 01, 2003 7:56 pm    Post subject: Reply with quote

grasshopper....you must associate the .pl file with perl for it to work....otherwise you will see only text!


perl and php scripting is easy.....


master Goose

out! :wink: 8)
Back to top View user's profile Send private message
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