File: waitjackports

package info (click to toggle)
freewheeling 0.5.2a-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,928 kB
  • ctags: 2,218
  • sloc: cpp: 17,507; sh: 6,505; makefile: 70
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