Command-Line Commands
MMDS0508OM/D
166
Command-Line Commands
MOTOROLA
SCRIPT
Execute Script File
SCRIPT
The SCRIPT command executes a script file, which contains a
sequence of emulator commands. Executing the script file has the same
effect as executing the individual commands one after another. This
makes a script file convenient for any sequence of commands that is
needed often, such as unit test or initialization command sequences.
The REM and WAIT commands are useful primarily within script files.
The REM command allows a comment to be displayed while the script
file executes. The WAIT command establishes a delay between the
execution of commands of the script file.
NOTE:
A script file can contain the SCRIPT command. Script files can be nested
as many as 15 levels deep.
If the script file has the filename STARTUP.05, the script file will be
executed each time the MMDS is started.
Syntax:
SCRIPT <
filename>
Where:
<
filename>
The name of the script file to be executed. An
extension of .SCR is the default and can be
omitted. The extension must be specified for
files with other extensions. A path name
followed by the asterisk (*) wildcard character
can be entered. In that case, the command
displays a window that lists the script files in the
specified directory that have the .SCR
extension. A file can be selected from the list.
Examples:
>SCRIPT INIT.SCR Execute commands in file INIT.SCR.
>SCRIPT *
Display all .SCR files, then execute the
selected file.
>SCRIPT A:*
Display all .SCR files in drive A, then
execute the selected file.
>SCRIPT B:*.xyz
Display all drive B files that have the
extension
.xyz then execute the selected file.
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..