NetXMS Support Forum

English Support => General Support => Topic started by: Victor Wiebe on August 07, 2014, 05:21:44 PM

Title: External Script from NXSL Script
Post by: Victor Wiebe on August 07, 2014, 05:21:44 PM
Is it possible to run an external, shell script from an NXSL script and return the output as a variable?
Title: Re: External Script from NXSL Script
Post by: Victor Kirhenshtein on August 07, 2014, 07:06:08 PM
Hi!

No, it is not possible. This is intentional limitation - NXSL scripts executed within a sandbox and cannot communicate with external world directly. However, you can define external parameter on an agent, and use AgentReadParameter function to get it's value.

Best regards,
Victor
Title: Re: External Script from NXSL Script
Post by: Victor Wiebe on August 08, 2014, 05:13:46 PM
Makes sense to me. Thanks!