Script templates and JACL scripts provide a convenient way to group commands. The commands can be executed from the file.
Script templates are similar to isa files in that they are group of commands; however, they are also class objects managed inside the system. You can use the Administration Workbench to create and modify script templates, associate the permissions of who can run them, and execute them from the user interface.
The following command imports script template information from the file system.
import script template from file "RegenerateAll.xml"
The XML file conforms to the XSD in install-root/etc.
The following command executes a script template and all the isadmin commands inside the script template.
alter system invoke script template "Initial Publish"
The name used in the command is the name defined inside the script template object (or XML file).
JACL scripts intermix isadmin commands with other activities such as polling external data source, sending e-mails, extracting data, calling APIs, and integrating with other systems. When the server starts, it prepares the script execution environment, and it is ready to accept any JACL scripts.
Note: | See Perl Module Scripts for how to write the JACL script made available by the server during execution. |
Use the invoke command to invoke the external JACL script.