Solved

Perl on Novell Netware problem

Posted on 1998-07-07
10
158 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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.…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

776 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