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
Solved

Perl on Novell Netware problem

Posted on 1998-07-07
10
161 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
  • 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
cpan issue 1 65
Perl 101 11 81
git fat pull happens nothing in centos 6.3 python 2.6.6 33 218
use google analytics code in perl script 2 81
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…

808 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