Testing a server
Hello again,
I have put this script in the following directory
shoutingrock.org/cgi-bin/
The script is called test.pl
#!/perl/perl
print "test";
The perl executable is at shoutingrock.org/perl/perl.exe
This is a hidden virtual directory.
If the ISP installed perl correctly should this run?
My goal in life is found in Phillipians 4:8-9
shoutingrock.org/troop214
voicebox posted this at 17:14 — 1st November 2000.
They have: 9 posts
Joined: Oct 2000
The path you have specified would not work, because perl is always stored on your ISP as either /usr/bin/perl or /usr/local/bin/perl. Try changing the line at the top of your script to one of these two.
Also, you need to write a Content-type: text/html header fr that script to work. Here is an amended version:
#!/usr/bin/perl (or #!/usr/local/bin/perl)
print "Content-type: text/html\n\n";
print "test";
Ted S posted this at 23:42 — 1st November 2000.
They have: 92 posts
Joined: May 1999
Since you mention perl.exe, I asusme you are on an NT server and therefore perl is NOT located in /usr/bin/perl or such.
The first and most important thing you you need to do is ask your host how perl is called. #!/perl/perl may work, but you may need to link to /perl/perl.exe or something totally different, depending on how iis is mapped.
You will also want to add a content header before you print anything. To do so, add the code print "Content-type: text/html\n\n";
Enjoy and good luck!
Ted S
Mark Hensler posted this at 07:00 — 2nd November 2000.
He has: 4,048 posts
Joined: Aug 2000
what is the error you get? (I'm assuming your getting a 500)
My 2 cents are betting on the path.
I may be wrong, but if it's on an NT box, don't you need to start with a drive letter? I do on my Win98...
Mark Hensler
If there is no answer on Google, then there is no question.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.