<?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[Include Wildcard in script 'import' directive]]></title><description><![CDATA[<p dir="auto">I have groups of scripts, such as MIKROTIK::Update and MIKROTIK::Backup<br />
Each script needs to be an individual script so that it can be executed from it's main(), needed for object tools.<br />
Each script calls a global script which runs the requested scripted recursively on all matching nodes.  I do the same for WINDOWS::, LINUX::, etc.</p>
<p dir="auto">For this to work, the global script has an import directive for each script, but there are a lot of them.</p>
<p dir="auto">It would be really convenient if I instead of:<br />
   import MIKROTIK::Update<br />
   import MIKROTIK::Backup</p>
<p dir="auto">I could rather have<br />
  import MIKROTIK::*</p>
]]></description><link>https://forum.netxms.org/topic/7698/include-wildcard-in-script-import-directive</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:35:19 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7698.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Jul 2023 04:28:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Include Wildcard in script 'import' directive on Fri, 15 Dec 2023 07:59:47 GMT]]></title><description><![CDATA[<p dir="auto">Wildcard import implemented in current development branch and will be included in release 5.0 (and 4.5 if it will be publicly released).</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/33082</link><guid isPermaLink="true">https://forum.netxms.org/post/33082</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 15 Dec 2023 07:59:47 GMT</pubDate></item><item><title><![CDATA[Reply to Include Wildcard in script 'import' directive on Mon, 10 Jul 2023 10:54:06 GMT]]></title><description><![CDATA[<p dir="auto">Another option is to call functions by explicitly specifying script name. For example, if you have script</p>
<p dir="auto">MIKROTIK::Update and function doUpdate within it, instead of doing</p>
<pre><code>import MIKROTIK::Update;

doUpdate();
</code></pre>
<p dir="auto">you can do</p>
<pre><code>MIKROTIK::Update::doUpdate();
</code></pre>
<p dir="auto">But wildcard import could be useful anyway, I agree on that.</p>
]]></description><link>https://forum.netxms.org/post/32568</link><guid isPermaLink="true">https://forum.netxms.org/post/32568</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 10 Jul 2023 10:54:06 GMT</pubDate></item></channel></rss>