home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
UT
/
UT030.ZIP
/
ANARKEY3.ZIP
/
LOAD.DOC
< prev
next >
Wrap
Text File
|
1989-10-01
|
9KB
|
264 lines
LOAD
The Anarkey Loader
User Manual
Version 3.00
Steven Calwas
Moderne Software
P.O. Box 3638
Santa Clara, CA 95055-3638
_______
____|__ | (tm)
--| | |-------------------
| ____|__ | Association of
| | |_| Shareware
|__| o | Professionals
-----| | |---------------------
|___|___| MEMBER
Copyright (C) 1989
Steven Calwas
All rights reserved
Introduction
------------
LOAD will read the contents of an ASCII text file and store each line,
unexecuted, into the ANARKEY history buffer.
Although "regular" command lines are not executed before being stored,
lines containing AKA definitions ARE processed as though they had been
entered on the command line. In other words, the AKA is defined. UNIX
switchar program names are also processed. (The processing of an AKA or
UNIX program definition can be suppress by specifying the -D option on the
LOAD command line. The -D option is explained later in this manual.)
Once ANARKEY is installed, LOAD may be executed at any time and any
number of times. It will probably be useful to run LOAD immediately after
installing ANARKEY to initialize your starting environment. For example,
you may define any AKAs and restore the contents of the history buffer from
the previous computer session. Later, a switch in tasks may warrant the use
of a different set of AKAs. LOAD can be run again to read and define these
new definitions.
Loading a Disk File
-------------------
ANARKEY must already be installed in order for LOAD to store lines into
its history buffer. If ANARKEY is not installed, LOAD will display an error
message and halt execution.
NOTE: If invoked from a multiple-command input line or AKA, LOAD must be
the very last command in the line.
LOAD syntax is:
LOAD [-options] filename [filename...]
If you invoke LOAD with no arguments, a short usage message will be
displayed.
Normally, one or more file names will be specified on the LOAD command
line. Each file specification may contain the DOS wildcard characters '*'
and '?'. LOAD will perform the wildcard expansion and process each matching
file in turn.
Each file should contain standard ASCII text characters. LOAD will read
one line at a time from the file. Blank lines and lines whose first word is
"REM" are ignored. Otherwise, the line is stored in the history buffer,
unexecuted. If there is not enough room in the buffer to store the line,
lines are removed from the top of the buffer to make room. (This operation
is explained in detail in the "ANARKEY User Manual.")
If the line is an AKA definition (specified by a colon in the first
character position), it will be processed and added to the list of AKAs (or
removed from the list if it is an un-define). If there is not enough
available AKA space to store the definition, LOAD will beep and display an
error message.
Likewise, a UNIX switchar program name (specified by a single or double
exclamation point) will be processed. Provided there is enough room to
store the name in the UNIX buffer, it will be saved. If there is not enough
room, LOAD will beep and display an error message. If the program name is
to be removed from the buffer, LOAD will do so.
Lines longer than 255 characters and lines containing individual commands
longer than 127 characters will be rejected by LOAD. An error message
stating the nature of the problem will be displayed and the offending line
will then be discarded. LOAD will continue reading any remaining lines in
the file.
LOAD assumes that the multiple-commands-per-line feature is active in all
processed lines unless the line contains a SET, PATH or PROMPT command. If
one of these commands is encountered, LOAD handles it in the same manner as
ANARKEY does, i.e. the remainder of the line is considered a single command.
LOAD also assumes that SET, PATH and PROMPT are not assigned to an AKA, for
example:
:S SET
Command-Line Options
--------------------
Options may appear anywhere on the command line. Each must be
immediately preceded by a dash (-) character. Options may be in upper or
lower case. The supported options are detailed in the remainder of this
section.
Suppress Processing of AKA and UNIX Definitions
-----------------------------------------------
-D -- Do Not Process AKA and UNIX Definitions
The -D option instructs LOAD to not process any AKA or UNIX definitions
it encounters in the loaded text file(s). When -D is specified, AKA and
UNIX definitions will not be stored in the AKA, UNIX or history buffers.
This suppression is useful when loading files which may contain some AKA
or UNIX definitions that were temporarily defined, but are no longer
desirable. Such instances may occur when loading a saved history-buffer log
file.
Calculating Required AKA and Switchar Space
-------------------------------------------
-M -- Display AKA and Switchar Memory Requirements
When -M is included on the command line, LOAD will read the contents of
each specified file and accumulate the number of characters taken up by AKA
and UNIX switchar definitions. The file's contents are not loaded into the
history buffer, nor are the AKA or switchar definitions processed.
After all of the files have been scanned, LOAD will display the total
amount of space the defined AKAs will require. This value can then be used
to allocate space for AKAs during ANARKEY installation (see the -A option in
the "ANARKEY User Manual").
If switchar definitions require memory, LOAD will display the total
amount needed. If there are no switchar definitions, no message will be
displayed.
LOAD does not keep track of AKAs or switchar programs that are defined
more than once nor AKA un-definitions. Any command read from the disk file
that begins with the AKA definition character (colon, ':') or UNIX switchar
character (single exclamation point, '!') is added to the accumulated total.
Thus, if a disk file contained the following definitions:
:define rem This is an AKA definition
:define rem A new substitution string
:define
!abc
!abc
LOAD would include the lengths of all five lines in its total, even though
the net result will require no AKA space and only four switchar characters.
(The above AKA definitions require no space because the second definition
replaces the first one and the third "definition" undefines it completely,
leaving nothing defined.)
ANARKEY does not have to be installed to use LOAD with the -M option.
Specifying the ANARKEY Process Number
-------------------------------------
-Pn -- ANARKEY Process Number
This option is identical to the -P option available on the ANARKEY
installation line. Please refer to the "ANARKEY User Manual" for details
about when to use this option.
The -P option will only be required in extremely rare instances. If you
installed ANARKEY without it, you will not need to use it for LOAD either.
Suppressing Run-Time Messages
-----------------------------
-Q -- Run in Quiet Mode
When LOAD is running in quiet mode, informational messages, such as the
name of the file being processed, are suppressed. Error messages will still
be displayed.
Comments and Suggestions
------------------------
I would love to hear your suggestions, comments, and enhancement ideas
concerning LOAD and the other programs in the ANARKEY software package.
Please send your suggestions to:
Steven Calwas
Moderne Software
P.O. Box 3638
Santa Clara, CA 95055-3638
_______
____|__ | (tm)
--| | |-------------------
| ____|__ | Association of
| | |_| Shareware
|__| o | Professionals
-----| | |---------------------
|___|___| MEMBER