[ < ] | [ > ] | [Contents] | [Index] | [ ? ] |
The installation of the library is actually very easy: Just copy the file to your ‘LIBS:’ directory. :-)) However, the library needs its own configfile which is the topic of this document.
You can place the file at any path you like, you can even chose any name you want. All you have to do is to set the environment variable NSPConfig according to the path. The library will check, in order of precedence, for a local and a global variable and use the value as path and name for the config file. If no NSPConfig variable is set, the default path is ‘S:NSPConfig’.
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
A valid config file may contain one keyword per line. Keywords MUST begin at the first column. The parameter can be separated from the keyword using either space(s) or tab(s). Lines starting with a “#” are comment lines and will be ignored.
Here’s an example:
# # NetSupport.Library config file # # $VER: NSPConfig 1.31 (29.6.94) # # # where the default config file is # MasterConfig UULib:Config SeqFile UULib:NSPLib_Seq # # Configuration for MakeLogEntry() # DefaultLog UUSpool:Logfile, stdout
The above entries have the following meanings:
This is important for routines dealing with config files. The caller has the possibility to provide a NULL as filename and let the library determine the correct file. The library will use the file you specify here. This should generally be the main config file of your installation, like ‘UULib:Config’ for UUCP or ‘inet:s/inet.config’ for the AS225r2 package. This feature makes the programs using the library package-independent.
NetSupport.Library features a function that returns an unique number, even if the machine has been switched off. This routine is often required by programs creating spool files such as sendmail, uux or LharcUUCP. Obviously, the current setting has to be saved to disk for later usage and here you may chose where this file shall be created. The default is ‘UULib:NSPLib_Seq’.
Attention: Earlier AmigaUUCP packages featured a similar mechanism that used a file named ‘UULib:Seq’ to store the current number. You must not configure NetSupport.Library to use this file, because the two mechanisms are NOT compatible.
You can specify a separate logfile for each program that uses the library. However, just in case your forget it, this logfile will be used. You can specify several logfiles, separated with commas. The libraries parsing routine is still a little bit weak, so please do not try special tricks, okay? :-) “stdout” is a magic, standing for the program’s standard output stream. An entry like
Testname T:testlog, stdout
will write the logentry to both, the file and the output window. You may also specify “CONSOLE:” for the standard error stream of the program. This is always a window and will not be affected by redirection, unlike “stdout”. “PRT:” will naturally send a copy of every log entry to the printer, etc...
Like mentioned above, you can specify logfile(s) for each program using the library. The program should state the keyword it uses in its manual, but usually it’s just the name of the program. ListSERV, for example, can be configured like this:
ListSERV ListSERV:logfile, stdout
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
NetSupportLibrary’s MakeLogEntry() function provides an easy way to control debugging output. The program author is able to provide debugging info of lower priority, which is not logged by default but only if you turn it on manually. Nine degrees between 1 and 9 are supported. You can set the debugging level from 0 (default) to see none of them up to 9 to see everything. NetSupport.Library checks the following places in order of precedence:
To turn the debugging info for ListSERV on (for example) execute “Set ListSERV_debug 9”.
To turn the debugging info for all programs using the library on, execute “Set Debug 9”.
[Top] | [Contents] | [Index] | [ ? ] |
This document was generated on December 8, 2024 using texi2html 5.0.
The buttons in the navigation panels have the following meaning:
Button | Name | Go to | From 1.2.3 go to |
---|---|---|---|
[ << ] | FastBack | Beginning of this chapter or previous chapter | 1 |
[ < ] | Back | Previous section in reading order | 1.2.2 |
[ Up ] | Up | Up section | 1.2 |
[ > ] | Forward | Next section in reading order | 1.2.4 |
[ >> ] | FastForward | Next chapter | 2 |
[Top] | Top | Cover (top) of document | |
[Contents] | Contents | Table of contents | |
[Index] | Index | Index | |
[ ? ] | About | About (help) |
where the Example assumes that the current position is at Subsubsection One-Two-Three of a document of the following structure:
This document was generated on December 8, 2024 using texi2html 5.0.