Solved

to open simple html file in browser

Posted on 2000-04-12
9
222 Views
Last Modified: 2013-12-06
I try to open html file in Netscape 4 on cdrom
In netscape
open page
choose file
made selection in file browser
  ok select in open in navigator
 .... and got error
Cannot locate server , server has no dns entry
Of course it is not a server
How to put netscape to understand this is local file under Un ix
on windows this is not a problem
0
Comment
Question by:mativare
  • 4
  • 3
  • 2
9 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2710475
I do this all the time in Netscape on Linux FreeBSD & Solaris for ordinary html files. Could it be that the html file you tried to open refers to some image or other ref that is a network link? When it fails, exactly what's shown in the "Location:" line of your browser?
0
 
LVL 1

Expert Comment

by:Astroman
ID: 2713677
What OS are you running. There were some bizarre bugs in older versions of HP-UX relating to depths of nested directories that it can read on Rockwell format CD's. It gave some sort of funny server erro, but It was so long ago that I had to deal with it, I don't remember exactly what it was.

What I do remember though, was that HP produced a patch to fix it.
0
 
LVL 1

Author Comment

by:mativare
ID: 2716322
I am Using Solaris 2.6
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!

 
LVL 1

Accepted Solution

by:
Astroman earned 50 total points
ID: 2716448
as an experiment, try going to the directory, e.g.

# cd /cdrom/dir

and invoking netscape with the file as a cmd line argument:

# netscape file.html

Does this work?

is there any thing strange in ths source for the HTML (i.e a META tag trying to redirect you omewhere)?

Is this machine connected to the web?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2718257
That definitely works on Solaris 2.6 and later. Have you lookt at the html file to see if it references images or other things by a hostname/path? Also exactly which Netscape 4 (4.02, 4.61, etc)?
0
 
LVL 1

Expert Comment

by:Astroman
ID: 2727302
uh, I guess "netscape file.html" worked then?

Did you get it to work with the file dialog? That is a strange problem, and I'm curios!
0
 
LVL 1

Author Comment

by:mativare
ID: 2732268
Thanks for the try
It didnot work
But I need to finish this guestion somehow
Therfore I gave you the points as "best try"
When I moved to cdrom I was enable even to launch
netscape
the only place from where I was able to launch it was /
error message was xlib connection to 0 0 refused by server
cannot open display
(was connected via monitor of course and x windows launched)
I was simply theoreticly interested can we do it therefore I
posted a guestion
Workoround was mechanikal:
Step 1:take out cdrom from unix box
Step2: put it into PC
Step3: enjoy
Thanks
0
 
LVL 1

Expert Comment

by:Astroman
ID: 2732409
> error message was xlib connection to 0 0 refused by server

This would imply that you were trying to run netscape from a window that is in a different login session to the X server. Was it a remote window, or was the xterm you started netscape in logged in as a different user?

In an xterm in the same session (same user, same machine) as the X Server, type "xhost +" to allow other sessions to display onyour X Server then try typing:

setenv DISPLAY localhost:0

(if you are using csh)

and then invoking netscape. You may find it works now.
0
 
LVL 1

Author Comment

by:mativare
ID: 2736570
Simply interesting
terminal
csh
I set in .cshrc
setenv DISPLAY localhost:0
now even root(logged on as root) cannot launch NETSAPE
error is cannot open display localhost:0
Any ideas
0

Featured Post

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!

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

685 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