Automation
Automation

Scripting How-To: Call another op-script within an op-script

by Cordelia on ‎08-10-2015 08:34 PM - edited on ‎09-11-2017 04:07 PM by Administrator Administrator (695 Views)

In the case of developing an op-script, from an existing op-script you can call another op-script as below. Utility.slax is the other op-script enabled in the system. You can pass an argument ($arg) as the command-line argument to run the utility script, if required.

 

1 var $call-another-script-rpc := <op-script> {
2     <script> "utility";
3     <arg> $arg;
4 }
5 var $rpc-result = jcs:invoke($call-another-script-rpc);