The following shows an example of passing arguments to a external script from within the testScript.sh Adapter Scripting Lanaguage (ASL) script (see Note statement):
START { .. eol }
do {
scriptName = "testScript.sh";
script = create("ACT_Script", "ACT-Script");
script->scriptName = scriptName;
params="arg1" . " ". "arg2";
status = script->run(params);
if (status != 0) {
print("Script execution Failed...");
}
}
The testScript.sh will be located in either of the following Smarts installation directories: