<div><div dir="auto">What error do you see in the logs? </div><div dir="auto"><br></div><br><div class="gmail_quote"><div>On Sun, Dec 10, 2017 at 11:04 Daniel W. Graham <<a href="mailto:dan@cmsinter.net">dan@cmsinter.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-8022961424117383889WordSection1">
<p class="MsoNormal">Trying to call a python script using exec_msg and haven’t had any luck.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The following works:<u></u><u></u></p>
<p class="MsoNormal">exec_msg("echo ‘TEST’ > /usr/local/etc/kamailio/test.txt");<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The following works from shell:<u></u><u></u></p>
<p class="MsoNormal">/usr/local/etc/kamailio/script.py arg1 arg2 arg3<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The following does not work from kamailio:<u></u><u></u></p>
<p class="MsoNormal">exec_msg("/usr/local/etc/kamailio/script.py arg1 arg2 arg3");<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">(The arguments are just strings for test purposes)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Kamailio is running as kamailio user<br>
<br>
<u></u><u></u></p>
<p class="MsoNormal">Permissions:<u></u><u></u></p>
<p class="MsoNormal">755 script.py<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any idea what could be going wrong?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">-dan<span style="font-size:10.0pt"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>