RunCommands [name]
{
<statements>
...
}
| Name | Description |
|---|---|
| name | The name argument is optional. If a name is not specified, it defaults
to "execute." Most FileWrapper components will only have one, unnamed
RunCommands section. You may want to define additional sections to
initialize and cleanup the component, and/or provide methods that may
be invoked on demand (see the listMethods
and invoke commands).
If any of the following names are used, then a corresponding special action occurs:
|
RunCommands
{
generate inFile
run "myProg.exe inFile.dat outFile.dat"
parse outFile
}
The following example runs the same program used in the
previous example, and cleans up temporary files generated by
the program when it runs.
RunCommands
{
generate inFile
run "myProg.exe inFile.dat outFile.dat"
parse outFile
}
RunCommands end
{
run "rm *.tmp"
}
See also Analysis Server | FileWrapper | FileWrapper Statements