File: waitjackports

package info (click to toggle)
freewheeling 0.6-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,848 kB
  • ctags: 4,510
  • sloc: cpp: 22,446; sh: 3,711; xml: 2,879; makefile: 29; ansic: 12
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