<div dir="ltr">Hello all!<div><br></div><div>Henning, thank you for the suggestion!</div><div><br></div><div>Daniel, your suggestion worked perfectly for my case.</div><div><br></div><div>Thank you!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 8 лист. 2022 р. о 18:07 Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> пише:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
you can use & at the end of command to set its execution in background,<br>
which should result in exec_cmd() returning immediately, no longer<br>
waiting for command execution to terminate. Like:<br>
<br>
exec_cmd("/path/to/myscript.sh &");<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 08.11.22 15:24, Володимир Іванець wrote:<br>
> Hello!<br>
><br>
> I was wondering how everyone uses exec_cmd(). I'm using it to call an<br>
> external script directly from a worker route which locks it for the<br>
> time of execution. If all that is needed is to call it and forget,<br>
> should the best option be to call the async route with exec_cmd()?<br>
><br>
> Thanks a lot for any input on this topic!<br>
><br>
> __________________________________________________________<br>
> Kamailio - Users Mailing List - Non Commercial Discussions<br>
> <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
> Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
> Edit mailing list options or unsubscribe:<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>
<br>
-- <br>
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" rel="noreferrer" target="_blank">www.asipto.com</a><br>
<a href="http://www.twitter.com/miconda" rel="noreferrer" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">www.linkedin.com/in/miconda</a><br>
<br>
</blockquote></div>