To run commands in batch mode, you must enter them into an XML file with special tagging.
-
Create a file with the XML extension and open the file in a text editor.
-
Enter the following for the first two lines:
<?xml version="1.0" encoding="UTF-8"?>
<commands>
-
Enter the following lines for the login command:
<command name="login" sequence="1">
<option name="url" arg="DOECSocketListenerUrl" />
<option name="pw" arg="DOECUserPassword" />
<option name="u" arg="DOECUuser" />
</command>
-
For each command that you want the file to execute, enter the information for the command in an XML structure like this:
<command name="commandName" sequence="sequenceInteger">
<option name="optionNamel" arg="optionValue1" />
<option name="optionName2" arg="optionValue2" />
<option name="optionName3" arg="optionValue3" />
...
<option name="optionNameN" arg="optionValueN" />
</command>
The sequence parameter controls the order in which the commands are executed.
-
After the last <command> entry, add the following line to terminate the file:
</commands>