Solved

Perl on Novell Netware problem

Posted on 1998-07-07
10
163 Views
Last Modified: 2010-03-05
I am using a script that is written for unix to run on Netware server. I have everything working except that the URL for the page being hit is truncated.  Can anyone tell me what is causing this. The script is freeware and can be seen at http://www.xav.com/scripts/axs/index.html
0
Comment
Question by:GaryZ
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 5

Accepted Solution

by:
b2pi earned 200 total points
ID: 1208303
You're not being very specific.  What have you tried so far as far as debugging?  _WHERE_ is the page being truncated?

I also note that you're running on a Netware server?  Have you investigated whether you have enough environment space?
0
 

Author Comment

by:GaryZ
ID: 1208304
The complete URL is being truncated, however only part of the time.

For instance I will have an entry as www.domain.com/ind and also an entry for www.domain.com/indi.htm and they are the same. It does not seem to matter what length the URL is as some of the longer names show correct in the log where as a shorter name is truncated.
0
 
LVL 5

Expert Comment

by:b2pi
ID: 1208305
no\\No, I'm not asking what is being truncated, but rather _WHERE_ is it being truncated (the url you list has two or three programs.  Which one is truncating the url?  Where in the code does the url appear to be truncated?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:GaryZ
ID: 1208306
The URL is being truncated in AX.CGI which is the program that creates the database.
0
 
LVL 5

Expert Comment

by:b2pi
ID: 1208307
OK.  Let's assume that you don't have anything in the custom section.... Add the following lines for debugging: (lines that are already there are marked with a leading '>')

>$logfile = 'log.txt';
>$domain = 'http://www.xav.com';
>$header = "Content-type: text/html\n\n";
 $debug = 1;
 if ($debug) {
     ## Open up a debug log file
     open (DEBUG,  ">>debug.txt");
 }

------- next chunk
> $logline = "|$ENV{'REMOTE_HOST'}|$ENV{'REMOTE_ADDR'}|";
  if ($debug) {
      print DEBUG "Got Referring page as $ENV{HTTP_REFERER} from $logline\n";
  }
> $ENV{'HTTP_REFERER'} =~ s/\|//g;
  if ($debug) {
      print DEBUG "Referring page now $ENV{HTTP_REFERER}\n";
  }
> $logline .= "$ENV{'HTTP_REFERER'}|";


------- next chunk
> print LOG $logline;
> close(LOG);
close(DEBUG);

------------ end of chunks

By the way, I'll repeat my suspicion that your environment isn't large enough.  I'm not overly sure how the novell server works, but that's what your description indicates.

Take a look at the debug log, and find some instances where there is truncation.  If there is no truncation in the debug log, you'll have to look more closely at the server.
0
 
LVL 5

Expert Comment

by:b2pi
ID: 1208308
Did you get anywhere with the debugging?
0
 

Author Comment

by:GaryZ
ID: 1208309
I will be coding the debug statements today and give them a try.
We have gone thru the Netware manual but cannot find an environment statement anywhere. We are going to research that some more.

It is real hard to find someone that knows anything about Netware.
0
 

Author Comment

by:GaryZ
ID: 1208310
Ran debug.

The code you gave me displayed the domain name of the person coming into the site. What I needed was the URL of the hit.

I changed HTTP_REFERER to DOCUMENT_URI which gave me the following:

/produ  which should be /products.htm
/compa  which should be /company.htm

0
 
LVL 5

Expert Comment

by:b2pi
ID: 1208311
So it was truncated in BOTH locations?  That does indeed sound like a configuration problem in your server :(
0
 

Author Comment

by:GaryZ
ID: 1208312
I am going to go ahead and close this out, thanks for your help.
We have concluded that this is probably a config issue, however, no one knows here knows how to change the config, and the company tthat installed the server is of no real help
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question