File: waitjackports

package info (click to toggle)
freewheeling 0.6-1.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,960 kB
  • sloc: cpp: 22,418; sh: 3,711; xml: 2,879; makefile: 78; 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