script_play
Abstract
Plays back a script, with or without prompting.
Syntax
script_play <filename> [noprompt]
| Argument | Type | Description |
|---|---|---|
<filename> |
string | name of the script file This argument should not include the .scr suffix, which is automatically appended. |
noprompt |
n/a | Suppress prompts. |
Details
A script is saved with the command script_save. Normally when a script is played back, a prompt allows the user to proceed to the next command in the script, to continue without further prompting, or to stop. To suppress all prompts, add the noprompt argument.
Example
ODB> script_view pksw
0: pktrace 100
1: pktrace 200
2: evstop +500
ODB> script_play pksw
ODB> pktrace 100
[n]ext | [c]ontinue | [s]top > n
ODB> pktrace 200
[n]ext | [c]ontinue | [s]top > n
ODB> evstop +500
[n]ext | [c]ontinue | [s]top > c
...