4
2.0
USING AND MANAGING SCRIPTS
The scripting utilities are accessible via the standard EM405-8 command interfaces (VXI-11 and
raw socket). In addition, a special
scripting socket interface
is available to help develop and
debug scripts. A set of use and management commands are defined and any of these commands
can be sent via any of the available interfaces with a few exceptions.
2.1
COMMANDS
The scripting commands allow the user to develop, use and manage scripts. These commands
are the primary interface to the scripting utilities and are used during both development and
deployment of scripts. They are available, with a few exceptions, via any of the EM405-8’s
command interfaces including the special scripting socket interface. A complete list of use and
management commands is shown in Table I. Details of each command can be found in the
subsequent sections.
Table I Use and Management Commands
?|help
list command help
data
<data>
send up to 16Kbytes to a script
(VXI-11 only)
halt
<script>
halt the script of the specified name
-l <script>
halt last script started of specified name
-n
x
<script>
halt script number x of specified name
-a [script]
halt all running scripts
list
list all scripts
-l [script]
list details (script name optional)
-r [script]
list if running (script name optional)
read
<script>
read the specified script
remove
<script>
remove the script
retrieve <script><port> retrieve the script using the specified port
-d
delete the file upon retrieval
run
<script>
run specified script
-e <command>
execute command
-i
enter interactive mode
(scripting socket only)
socket?
returns 1 if scripting socket running, 0 if not
-p
returns the port of the scripting socket
upload
<script><port> upload the script using the specified port
-x
execute script after upload
-o
overwrite script if file exists
ver
returns versions of Lua and EM405-8 extensions
Note: An asterisk (*) is required before the command if sent via the VXI-11 or raw socket interface. The
EM405-8 contains a binary command protocol. An asterisk (*) character denotes that the remaining
command consists of ASCII characters. If the first byte is anything other that an asterisk (*) the EM405-8
perceives it as a binary command. The binary commands are not available via the scripting socket therefore
the asterisk (*) is not required nor recognized.
2.1.1
? | Help
The
help
command or simply
‘?’
will return a list of commands along with argument options
and descriptions similar to Table I. The result will be output via the same interface from which
the command was received.
help
or
?