Re: [LAD] Whitespaces in jack client/port names / jack_connect

From: Philipp Überbacher <hollunder@email-addr-hidden>
Date: Fri Aug 27 2010 - 11:52:25 EEST

Excerpts from drew Roberts's message of 2010-08-27 01:56:15 +0200:
> On Thursday 26 August 2010 19:34:04 Philipp wrote:
> > Hi,
> > I have issues with jack client names that contain whitespaces.
> > Example:
> >
> > $ jack_connect MPlayer [19079]:out_0 system:playback_2
> > ERROR [19079]:out_0 not a valid port
> >
> > Any idea how I can make this work? I tried:
> >
> > $ jack_connect "MPlayer [19079]:out_0" "system:playback_2"
> > ERROR MPlayer [19079]:out_0 not a valid port
> >
> > $ jack_connect 'MPlayer [19079]:out_0' 'system:playback_2'
> > ERROR MPlayer [19079]:out_0 not a valid port
> >
> > So I wonder whether spaces in jack client names and ports are even
> > allowed, since imho jack_connect is a rather fundamental tool, and
> > either the tool or those clients are broken.
>
> Do you need to escape the space?
>
> http://digitaldub.wordpress.com/2009/12/16/linux-audio-session-scripting/
>
> "The backslash in the string USB\ Device:1 is an escape character. When
> interpreted on execution, the character following the escape character (here
> whitespace, wich happened to be part of the device name listed by aconnect)
> will loose its special function as a seperator. An other option would be to
> use quoting and write
>
> aconnect 'USB Device':1 aeolus:0
>
> Read more about quoting here if you want."
>
> all the best,
>
> drew

Thanks!

Both variants work:
jack_connect MPlayer\ [5818]:out_0 system:playback_1
jack_connect 'MPlayer [5818]':out_0 system:playback_2

But what a pain..

-- 
Philipp
--
"Wir stehen selbst enttäuscht und sehn betroffen / Den Vorhang zu
und alle Fragen offen." Bertolt Brecht, Der gute Mensch von Sezuan
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Sat Aug 28 12:15:03 2010

This archive was generated by hypermail 2.1.8 : Sat Aug 28 2010 - 12:15:04 EEST