[OpenSIPS-Devel] [opensips] added exec(cmd, output, input, error, avpenv) function for exec (#375)

Walter Doekes notifications at github.com
Wed Oct 29 09:38:58 CET 2014


> +		<para>
> +		WARNING: "input"/"output"/"error" parameters are not designed for a large amount of
> +		data so one should be careful when using them because server could considerably be
> +		slowed down.
> +		</para>
> +		<para>
> +		This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
> +		LOCAL_ROUTE, STARTUP_ROUTE, TIMER_ROUTE, EVENT_ROUTE, ONREPLY_ROUTE.
> +		</para>
> +		<example>
> +		<title><function moreinfo="none">exec</function> usage</title>
> +		<programlisting format="linespecific">
> +...
> +$avp(env) = "a";
> +$avp(env) = "b";
> +exec("ls -l", "$var(out)",, "$avp(env)");

This example does not take stderr into account.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/375/files#r19524764
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20141029/b01106a1/attachment.htm>


More information about the Devel mailing list