If your editor does not come up, the most likely problem is that Sapphire/Web cannot locate it. From the command line (in an xterm), edit $SAPPHIRE/bin/saedithtml.sh by invoking your editor. For example:
% vi $SAPPHIRE/bin/saedithtml.sh
At the beginning of saedithtml.sh, there is an environment variable called EDITOR. Please change that to reflect your preferred HTML editor. Example -- if want to use /usr/local/bin/emacs
, change the line from:
EDITOR="xterm -e vi"to:
EDITOR="/usr/local/bin/emacs"
% vi $SAPPHIRE/bin/sabrowser.sh
BROWSER=netscape
to:
BROWSER=/pkg/ns-2.0/netscape
% mkdir /tmp/foo
% cd /tmp/foo
$SAPPHIRE/bin/saweb.sh
by selecting the menu item Tools->Document Manager...
select the menu item File->Create.
begin.html
as the name of the first HTML document.
<HTML>
<HEAD><TITLE> Initial Document </TITLE></HEAD>
<BODY>
This is the first document. Click
<A HREF="GO">here</A> to go to the next.
</BODY>
</HTML>
<HTML>
<HEAD><TITLE> Final Document </TITLE></HEAD>
<BODY>
This is the final document. Cool.
</BODY>
</HTML>
by selecting the menu item Tools->Object Bind Editor.
Another window pops up (the Open DSQL or PROC).
Since this is a NULL binding, no additional work is required.
At this point the Object Bind Editor will close., and the Project Window appears¯you will now test the project.
Compiling test.c [ANSI C]
Compiling begin.c [ANSI C]
Linking test.cgi
Finished Linking
MAKE=maketo point to wherever
Make
is installed on the system. Also make sure that CC=, is pointing to a valid compiler/linker.
% mkdir /tmp/foo
% cd /tmp/foo
$SAPPHIRE/bin/saweb.sh
This is the file path that CGIs are installed to¯therefore, if your HTTP server is configured to execute CGIs from any directory, you should probably use something of the form:
/my/home/directory/public_html/cgi-binwhere /my/home/directory is your home directory. If you plan to install your CGIs to a different machine, this option should have the form:
machine:/my/home/directory/public_html/
/home/netscape/ns-home/docs/cgi-binand the HTTP server document root was /home/netscape/ns-home/docs then the CGI URL would be set to:
http://machine/cgi-bin/
HTML Path--This is the file path that HTML documents are installed to. Since this is the project test phase rather than the final release, you probably want to use a personal home directory rather than the main HTTP server document root. For example,
/my/home/directory/public_html/
where /my/home/directory is your home directory. If you plan to install your HTML documents to a different machine, this option should have the form:
machine:/my/home/directory/public_html/cgi-bin.
HTML URL--This is the URL used to reference an HTML document installed to the above HTML path. For example, if a document were installed to:
/home/netscape/ns-home/docs/and the HTTP server document root was /home/netscape/ns-home/docs then the HTML URL would be set to:
http://machine/
select the menu item File->Test.
Your web browser should pop up with the first page.