[OpenSIPS-Users] EXEC not working
Dragomir Haralambiev
goup2010 at gmail.com
Thu Feb 4 11:26:49 EST 2021
Hi,
When try to start Opensips with follow settings:
exec("ls -l", , $var(out), $var(err), $avp(env));
I receive follow error:
column 12-21: syntax error
bad arguments for command <exec>
На чт, 4.02.2021 г. в 13:15 ч. Mark Allen <mark at allenclan.co.uk> написа:
> 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
>>
> _______________________________________________
> 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/aa9c5c25/attachment-0001.html>
More information about the Users
mailing list