Index of /pub/mirrors/ftp.novell.com/forge/nscript

Icon  Name                               Last modified      Size  Description
[DIR] Parent Directory - [TXT] CHANGELOG.html 18-Feb-2005 18:30 9.0K [TXT] DEPENDENCIES.html 18-Feb-2005 18:30 1.4K [TXT] DOCUMENTATION.html 24-Jan-2005 00:00 132 [TXT] LICENSE.txt 02-Dec-2004 00:00 11K [TXT] README.html 11-Feb-2005 00:00 20K [TXT] SAMPLECODE.html 24-Jan-2005 00:00 132 [DIR] builds/ 27-Aug-2008 02:03 -
Novell Script For NetWare


Novell Script For NetWare

1.0 Configuration
1.1 Installation Notes
1.2 Testing Your Setup
1.3 Sample Web Scripts
1.4 Configuring the Enterprise Web Server
1.5 Configuring the Apache Web Server
1.5.1 Configure Apache 1.3 Web server
1.5.2 Configure Apache 2.0 Web server
2.0 Documentation
2.1 Viewable and Downloadable Documentation
2.2 News Groups
3.0 What's New
3.1 Enhancement to the Server UCX component
3.2 Archive
4.0 Known Defects and Issues
4.1 FTP Functionality Issue
4.2 Executing Sample Scripts with Colon(:) in the URL
4.3 MySQL Parameter Object
5.0 Legal Notices


1.0 Configuration


1.1 Installation Notes

This release of Novell® Script for NetWare® (NSN) may not work with the earlier versions of Universal Component System (UCSTM). To resolve this, install the UCS binaries available with the February 2002 NDK release or later.


1.2 Testing Your Setup

To start the interactive shell for script execution, enter the following commands at the server console:

nsninit

nsnshell

Enter the following command in the NSN shell:

dir

The directory listing of the sys volume is displayed.

To terminate the interactive shell, enter exit in the shell.


1.3 Sample Web Scripts

Sample Web scripts are located under the directory, sys:\nsn\webdemo. To test these samples, copy them to sys:/nsn/web directory.

We suggest to remove these sample scripts from a production server.


1.4 Configuring the Enterprise Web Server

To enable NSN support for the NetWare Enterprise Web Server, connect to the administration server using your browser. The URL should be given in the following format:

http://server:adminport

Click the server you want to administer, then click Programs. If the CGI directory is not highlighted complete the following procedure:

  1. Select the CGI directory, enter the following information and click OK.

    For NSN:

    URL Prefix: nsn

    CGI Directory: /nsn/lcgi/cgi2ucs.nlm

    For Novell Script Pages:

    URL Prefix: sp

    CGI Directory: /nsn/lcgi/scrptpgs.nlm

  2. Click Save and Apply.

  3. To test the Web server configuration, enter the URL in the following format:

    http://server_name/nsn/env.bas

    This will execute the script env.bas and display the Web server environment variables.

    By default, the following URL prefixes are available:

    • Novell Script for NetWare - nsn
    • Novell Script Pages - nsp or sp


1.5 Configuring the Apache Web Server


1.5.1 Configure Apache 1.3 Web server

To enable the execution of NSN scripts and ASP pages from Apache 1.3 Web server on NetWare, include the following lines in the httpd.conf file.

LoadModule lcgi_module modules/mod_lcgi.nlm 

<IfModule mod_lcgi.c>
AddHandler lcgi-script nlm .pl .asp .nsp .bas
LCGIModuleMap sys:\nsn\lcgi\scrptpgs.nlm .asp .nsp /sp
LCGIModuleMap sys:\nsn\lcgi\cgi2ucs.nlm .bas /nsn

ScriptAlias /nsn sys:/nsn/web
</IfModule>


1.5.2 Configure Apache 2.0 Web server

The AMP pattern installation makes the necessary changes to Apache configuration to enable the execution of NSN scripts and Novell Script Pages from Apache 2.0 Web server.

You can test the Web server configuration using a browser. To do this, enter a URL using the following format:

http://server_name:port_number/nsn/env.bas

This URL displays the Web server environment variables.

If AMP pattern is not selected during server installation, then to enable the execution of NSN scripts and ASP pages from Apache Web server on NetWare, include the following lines in the httpd.conf file.

include sys:apache2/conf/mod_nsn.conf

You can test the Web server configuration using a browser. To do this, enter a URL using the following format:

http://server_name:port_number/nsn/env.bas

This URL displays the Web server environment variables.


2.0 Documentation


2.1 Viewable and Downloadable Documentation

The documentation for NSN can be downloaded or viewed at the NDK documentation site.

We've enabled Start menu documentation entries. After installing the documentation, use the NDK Documents entry on your Start menu to quickly locate and access NDK documentation.

To read or print the documentation, you need Adobe Acrobat Reader 4.0 or later. For a free download, see the Adobe site.

When you download the documentation, the following four books are downloaded to the install_location\doc\nscript directory:

  • Introduction to Novell Script for NetWare (nsc1_enu.pdf) provides overview about NSN and references to all supported UCX components
  • NSN Components - Part One (A-L) (nsc2_enu.pdf) provides details of components (A-L)
  • NSN Components - Part Two (M-Z) (nsc3_enu.pdf) provides details of components (M-Z)
  • UCX SDK Components (nsc4_enu) provides details about UCX APIs

The documentation for Universal Component System can be downloaded or viewed at NDK documentation site.


2.2 News Groups

The following news groups are available for discussions in Novell Developer Forums

  • NSN Group: novell.devsup.nscript
  • UCS Group: novell.devsup.ucs


3.0 What's New


3.1 Enhancement to the Server UCX component

This enhancement will help users to retrieve IPAddresses of the NetWare server.

Server.IPAddresses returns collection of IPAddress objects.

Address property of IPAddress object will return IP Address of the server.


3.2 Archive

To see changes in the software, sample code, and documentation for previous releases, see the What's New Archive.


4.0 Known Defects and Issues


4.1 FTP Functionality Issue

Scripts using FTP functionality will not get executed from NetWare 5.1 SP7 server.


4.2 Executing Sample Scripts with Colon(:) in the URL

The sample scripts (*.bas) containing colon (:) will not be executed properly in Apache 1.3. To execute these scripts ":" should be removed.


4.3 MySQL Parameter Object

The date data type for the MySQL parameter object is not supported in this release.


5.0 Legal Notices

Novell, Inc. makes no representations or warranties with respect to the contents or use of this documentation, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. Further, Novell, Inc. reserves the right to revise this publication and to make changes to its content, at any time, without obligation to notify any person or entity of such revisions or changes.

Further, Novell, Inc. makes no representations or warranties with respect to any software, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. Further, Novell, Inc. reserves the right to make changes to any and all parts of Novell software, at any time, without any obligation to notify any person or entity of such changes.

You may not use, export or re-export this product in violation of any applicable laws or regulations including, without limitation, U.S. export regulations or the laws of the country in which you reside.

All files provided in this release are subject to the Novell Developer License Agreement, which can be found in the license.txt file provided in this download.

Copyright © 2003 - 2004 Novell, Inc. All rights reserved. No part of this publication may be reproduced, photocopied, stored on a retrieval system, or transmitted without the express written consent of the publisher.

Novell and NetWare are a registered trademark of Novell, Inc. in the United States and other countries.

UCS is a trademark of Novell, Inc. in the United States and other countries.

All third-party products are the property of their respective owners.