PDA

View Full Version : Perl help totally lost.


tn@joslyn.org
04-08-2008, 11:10 PM
I have this Peal code that take a txt file and converts it into a nice formatted web page. The company like this program a few years back in 06. The person who wrote the code no longer works at the company and I took on this troubleshooting problem. Can anyone help me. I attached the perl code into a txt documents.

Thanks again for any help.

FishMonger
04-09-2008, 12:37 AM
First let me welcome you to CF and since this is your first post, let me point out a couple things that will help us help you.

The subject of your question should always relate to the problem at hand and be clear & concise. "Peal help totally lost" does not give us a clue to the type of problem you're having.

The body of your question should provide details of the problem in a clear and concise manor. The body of this "question" doesn't provide any info about the problem. In fact there is no question at all other than "Can anyone help me".

Exactly what is the problem?

Are you receiving any errors, if so what are they?

What output does this script actually give and how does it differ from what you expect?

I can tell you that the script is poorly written and we can go over some of the details, if you wish. However, without knowing what type of assistance you're asking for, it's hard to provide the help you want.

tn@joslyn.org
04-09-2008, 02:49 AM
All I know from the users at my company, they click on this events.pl on the website it pulls the information off the calendar.txt and puts it on the website in a formatted web page. I get no error message the output I get is the events.pl in a text document. All the code is the same and no changes were made. Only thing that was change is we installed activepeal5.1 on a new windows 2003 server and moved all the data to the same location on the new server. I must not have the peal application installed correctly on the server.

I guess the question I have does this script, work the way the user tells me it sopose to work. I konw very little peal scripting. any advice would be helpful.

Thanks again for any help.

KevinADC
04-09-2008, 03:15 AM
Please note: its perl, not peal.

Either the webserver is not setup correctly or you are not putting the perl script in the correct folder. Most servers have a cgi-bin folder which is used to run perl based CGI scripts.

FishMonger
04-09-2008, 03:28 AM
The language is Perl or perl, not peal. As far as I know, there is no programming language called peal.

I guess the question I have does this script, work the way the user tells me it sopose to work.In order to answer that, I'd need to have a copy of your Calendar.txt file so I could run a test on my server.

You still haven't clearly explained the problem that you're experiencing, but it sounds like you're saying that you're browser is displaying the source code of the script rather than the results from its execution. If that's the case, then the web server isn't configured properly to execute perl scripts, at least not were the script is currently located.

Which web server are you using, IIS or apache?

KevinADC
04-09-2008, 03:38 AM
All yours Fish, this one looks like it's going to be a tooth pulling session, and I'm not a dentist ;)

FishMonger
04-09-2008, 03:44 AM
All yours Fish, this one looks like it's going to be a tooth pulling session, and I'm not a dentist ;)A dentist only needs a string, pliers, and a hammer. I've got an extra set if you want to have fun. ;) ;)

tn@joslyn.org
04-09-2008, 04:29 AM
I got the Perl script to run. Can you tell me where the output is going? I ran the Perl script on the website and it ask me to open or run the script. I ran the script ran I and don't see in the code the location of the formatted web page.

FishMonger
04-09-2008, 04:36 AM
It sounds like you're using IIS and it's still not configured correctly.

See if this helps.
http://support.microsoft.com/kb/245225

tn@joslyn.org
04-09-2008, 04:57 PM
I followed the Microsoft document on setting up the IIS server to run a Perl helloworld script. I still only get the code text. Any more ideas we be very greatful.

$url = "http://$ENV{SERVER_NAME}$ENV{URL}"; $ip = "$ENV{REMOTE_ADDR}"; print <
Hello World!
You have reached $url

Your IP Address is $ip

Have a nice day!
ENDOFTEXT exit(0);

nkrgupta
04-09-2008, 05:56 PM
It sounds like you're using IIS and it's still not configured correctly.

See if this helps.
http://support.microsoft.com/kb/245225

Offtopic: The above page contains zillions of instances of the term PERL (including the page title, KB article subject and every other place!) rather than the appropriate trems Perl and perl.

I wonder if MS is ignorant on this, or they simply don't care!