Automation
Automation

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

by Cordelia on ‎08-07-2015 05:48 AM - edited on ‎09-11-2017 05:45 PM by Administrator Administrator (820 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);