<div dir="ltr"><div>Hey Chris,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 15, 2019 at 4:08 PM Chris Caudle <<a href="mailto:chris@chriscaudle.org">chris@chriscaudle.org</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">On Thu, August 15, 2019 3:36 pm, Matt Zagrabelny wrote:<br>
> Is there a "jack_FOO" CLI tool that can be used to query what available<br>
> ports there are?<br>
<br>
There is a group of tools known as jack example clients which may be useful.<br>
Actually jack_connect is part of that, look in /usr/bin and see what other<br>
jack* files exist, you probably already have them.<br></blockquote><div><br></div><div>Yup. I looked around, but didn't run "--help" for each jack_ command. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
jack_lsp lists ports<br>
jack_wait waits for various jackd events and then exits; see the help file<br></blockquote><div><br></div><div>Sounds promising. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> The reason being is I need to put a sleep into my script to connect the<br>
> jack ports:<br>
><br>
> /usr/bin/obs &<br>
> sleep 10<br>
> jack_connect system:out_1 OBS:jack_in<br>
<br>
Is jackd already running?</blockquote><div><br></div><div>Yes. I'm running jack2 as a systemd user service - so it starts as soon as I log in.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  jack_wait would be for waiting on jackd to<br>
finish initializing in cases where obs quits out right after starting<br>
because it cannot detect a jack server running.<br></blockquote><div><br></div><div>Hmmm... okay.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> I'd like to eliminate the sleep command and poll jack to see if OBS has<br>
> any port available.<br>
<br>
I'm not sure how difficult it would be to parse the output from  jack_lsp,<br>
but I think it should be possible, and if there are no obs ports when you<br>
run the command, sleep 1 or 2 seconds and run again.<br></blockquote><div><br></div><div>Sure.</div><div><br></div><div>Thanks for the help!</div><div><br></div><div>-m</div></div></div>