[OpenSIPS-Users] Module EXEC exec command stdout stderr values
sevpal
sevpal at aol.com
Fri Oct 2 17:27:16 CEST 2015
Hi list, there seems to be a bit of inconsistency when using a statement such as this:
...
exec(“/usr/local/sbin/script.sh”,,”$var(out)”,”$var(err)”);
...
if $var(err) had a value from another process it could hold contents from memory. Not a big issue, but when performing a xlog() with those variables, sometimes values show up from unrelated requests. This can be misleading.
I think if the function is successful, then $var(err) and $var(out) should be set to empty.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20151002/b2f0a5ec/attachment.htm>
More information about the Users
mailing list