<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Script: call other script from library]]></title><description><![CDATA[<p dir="auto">Hi guys,</p>
<p dir="auto">I wanna call a script from the library inside of another script. Is this possible? And how can I handover some  values?</p>
<p dir="auto">let's say I have the following two script in my library:<br />
1.) SCRIPT::A which is called from server console with a praram like "exec SCRIPT::A my-param"<br />
2.) SCRIPT::B</p>
<p dir="auto">Now I want to call SCRIPT::A inside of SCRIPT::B also with a parameter.<br />
Is this possible?</p>
<p dir="auto">Best regards,<br />
Danny</p>
]]></description><link>https://forum.netxms.org/topic/4868/script-call-other-script-from-library</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:00:38 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4868.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Jan 2017 07:28:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Script: call other script from library on Fri, 13 Jan 2017 08:38:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi Alex,<br />
Thanks for your fast response. It works as you described it <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.netxms.org/post/21645</link><guid isPermaLink="true">https://forum.netxms.org/post/21645</guid><dc:creator><![CDATA[dkoppenhagen]]></dc:creator><pubDate>Fri, 13 Jan 2017 08:38:27 GMT</pubDate></item><item><title><![CDATA[Reply to Script: call other script from library on Fri, 13 Jan 2017 07:48:44 GMT]]></title><description><![CDATA[<p dir="auto">SCRIPT::A -</p>
<pre><code>use SCRIPT::B;
funcB($1);
</code></pre>
<p dir="auto">SCRIPT::B -</p>
<pre><code>sub funcB(arg) {
  trace(0, "SCRIPT::B arg=" . arg);
}
</code></pre>
<p dir="auto">You can also add call to funcB() at the end of the SCRIPT::B (it will not be executed during import with "use", but will call your code when you'll use SCRIPT::B somewhere. I don't recommend that, however - just create separate script with functions you need and import them where required.</p>
]]></description><link>https://forum.netxms.org/post/21643</link><guid isPermaLink="true">https://forum.netxms.org/post/21643</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Fri, 13 Jan 2017 07:48:44 GMT</pubDate></item></channel></rss>