<div dir="ltr">Hi Dragomir,<div><br></div><div>exec is working for me in OpenSIPS 3.1 with command...</div><div><br></div><div>exec("/root/scripts/script.sh $si", , $var(out), $var(err));<br></div><div><br></div><div>Is it the quotes around $var(err) that is causing the null output??</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 4 Feb 2021 at 10:37, Dragomir Haralambiev <<a href="mailto:goup2010@gmail.com">goup2010@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I try to run external program like this<br><br>exec("/test/<a href="http://opensips.pl" target="_blank">opensips.pl</a>",,,"$var(err)");<br>xlog("Received the following error $var(err)");<br><br>Here is log record:<br>Received the following error <null><br></div><div><br></div><div>The program is not running.<br><br>Where is the reason?<br></div><div><br></div><div>Best regards:<br>Dragomir </div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>