[OpenSIPS-Users] EXEC not working

Mark Allen mark at allenclan.co.uk
Thu Feb 4 11:13:16 EST 2021


Hi Dragomir,

exec is working for me in OpenSIPS 3.1 with command...

exec("/root/scripts/script.sh $si", , $var(out), $var(err));

Is it the quotes around $var(err) that is causing the null output??



On Thu, 4 Feb 2021 at 10:37, Dragomir Haralambiev <goup2010 at gmail.com>
wrote:

> Hello,
>
> I try to run external program like this
>
> exec("/test/opensips.pl",,,"$var(err)");
> xlog("Received the following error $var(err)");
>
> Here is log record:
> Received the following error <null>
>
> The program is not running.
>
> Where is the reason?
>
> Best regards:
> Dragomir
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210204/b54f88cb/attachment.html>


More information about the Users mailing list