[OpenSIPS-Devel] [opensips] added exec(cmd, output, input, error, avpenv) function for exec (#375)
Ionut Ionita
notifications at github.com
Thu Oct 30 16:34:31 CET 2014
> + <para><emphasis>error</emphasis> - pseudovariable where to store the error from
> + the standard error of the process.
> + </para>
> + </listitem>
> + <listitem>
> + <para><emphasis>envavp</emphasis> - Avp where to store the values for the
> + environment variables to be passed for the command. The names of the environment
> + variables will be "OSIPS_EXEC_#" where # will start from 0. For example if you
> + store 2 values into an avp ("a" and "b") OSIPS_EXEC_0 will contain the first value
> + and OSIPS_EXEC_1 the second value.
> + </para>
> + </listitem>
> + </itemizedlist>
> + <para>
> + WARNING: any OpenSIPS pseudo-vars which may contain special bash
> + characters should be placed inside quotes, e.g. exec("update-stats.sh '$ct'");
This also happend in previous versions. This happens because all the parameters received by exec are given in a single command and checking such things have to be done before giving the command to script.
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/375/files#r19612629
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20141030/1efa730c/attachment.htm>
More information about the Devel
mailing list