[OpenSIPS-Devel] [opensips] added exec(cmd, output, input, avpenv) function for exec module (#360)
Walter Doekes
notifications at github.com
Thu Oct 16 16:00:56 CEST 2014
> @@ -243,6 +246,48 @@ exec_getenv("HOSTNAME");
> exec_getenv("HOSTNAME", "$avp(localhost)");
> ...
>
> +1.4.5. exec(command, [output], [input], [envavp])
> +
> + Executes an external command. The input is passed to the
> + standard input of the new process, if specified, and the output
> + is saved in the output variable.
> +
> + Meaning of the parameters is as follows:
> + * command - command to be executed.It can include
> + pseudovariables.
> + * output - pseudovariable where to store the output from the
> + standard output of the command. Keep in mind that if this
> + parameter is set, the async paramater will not be taken in
> + consideration.
Could you call this [stdin], [stdout]
and can we also get [stderr] ?
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/360/files#r18956469
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20141016/7ebcc481/attachment-0001.htm>
More information about the Devel
mailing list