Automation

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

By Elevate posted 08-10-2015 20:34

  

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);

 

 


#ScriptingHow-To
#How-To
#Slax
#opscript
0 comments
0 views

Permalink