Solved

Perl on Novell Netware problem

Posted on 1998-07-07
10
152 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Author Comment

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

Expert Comment

by:b2pi
Comment Utility
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 5

Expert Comment

by:b2pi
Comment Utility
Did you get anywhere with the debugging?
0
 

Author Comment

by:GaryZ
Comment Utility
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
Comment Utility
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
Comment Utility
So it was truncated in BOTH locations?  That does indeed sound like a configuration problem in your server :(
0
 

Author Comment

by:GaryZ
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now