6.2 Script commands by category
Listed below is the entire set of Novaterm
script commands.
Remember that the commands must be typed
in lowercase! If script
commands are typed in uppercase, they
will not compile correctly.
Any arguments that go along with a command
are placed next to it.
Numeric arguments are given in brackets
[ ], and string arguments
are in quotes " ". Optional arguments
are given inside < and >
symbols. The description of the argument
is in lowercase.
6.2.1 Modem and screen input/output
check [string number] "string"
Works in conjunction with the wait command
to detect incoming
strings. For example,
check 2 "Password"
defines string number 2 as Password.
Up to 6 strings may be
defined. When the script encounters a
WAIT
command, it goes to
terminal mode and wait until one of these
defined strings is received.
The ordering of these commands in a script
should be as follows:
check 1 "Username"
check 2 "Password"
wait
if check 1 then output"My name^M"
if check 2 then output"My password^M"
Set up the strings with a series of check
commands, and then execute
the wait
command to go into terminal mode and begin looking for
those strings. When one of the strings
is detected, the wait
command
ends, and the script must determine which
string was received with an
if/then
statement.
Strings defined with the check
command are case sensitive, so you
must include capital letters where necessary.
If a received strings pattern matches more
than one string specified by
check
commands, the lowest number is returned. For example, if
string 1 is '>' and string 2 is Lobby>,
and the string Lobby>
is
received, the script recognizes string
1 because it is a lower string
number, even though both strings match
the received data.
download "filename,type"
Downloads the specified file using the installed protocol. The one-