Executing commands from a file

The exec command executes commands from a file as if the user typed or pasted the input into the MD-CLI.

Use the following syntax to execute commands from a file.

[ex:/configure]
A:admin@node-2# exec ?

 [url] <string>
 <string>  - <0..255 characters>

    Location of the file to be executed

[ex:/configure]
A:admin@node-2# exec my-url-fn ?

 exec

 echo                  - Display the commands as they are being executed

The exec command:

The system executes the file as follows:

Note: The exec command should not be used to enter configuration statements. Use the load command instead.

Using commands that switch engines in an executable file

When using commands that switch between CLI engines within an executable file, the following commands are recommended: