File: waitjackports

package info (click to toggle)
freewheeling 0.6.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,136 kB
  • sloc: cpp: 23,079; xml: 3,632; ansic: 1,818; sh: 1,241; makefile: 45
file content (16 lines) | stat: -rwxr-xr-x 341 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Script to wait for named JACK ports to appear
#
# usage: waitjackports <name>
#
# where name is the full or partial client name (grep search will be done)
#
# prints all ports belonging to the named client

JACK_NAME=$1

while ((`jack_lsp | grep $JACK_NAME | awk 'END { print NR }'` == 0))
do 
  sleep 0.1
done

jack_lsp | grep $JACK_NAME