Re: [LAU] another scripting question

From: Kjetil S. Matheussen <k.s.matheussen@email-addr-hidden>
Date: Mon Feb 18 2008 - 19:17:50 EET

Dave Phillips:
>
> Greetings,
>
> I'd like to add some conditional tests to my simple scripts. For
> example, I want to query the system to determine whether JACK is already
> running. If it is, I'll run an app (e.g. xine or AlsaPlayer) configured
> for JACK. If JACK is not running, I'll run the app without it.
>
> So how do I test for JACK in a simple bash shell script ?
>

Hi,

This seems to work:

if jack_lsp >/dev/null 2>/dev/null ; then
   echo "running"
else
   echo "not running"
fi

I'm not sure if its the best way though. (what if jack_lsp changes in
a later version?)
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Mon Feb 18 20:15:04 2008

This archive was generated by hypermail 2.1.8 : Mon Feb 18 2008 - 20:15:04 EET