[LAU] another scripting question

Arnold Krille arnold at arnoldarts.de
Mon Feb 18 12:50:45 EST 2008

Am Montag, 18. Februar 2008 schrieb Dave Phillips:
> 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 ?

I use the return-value of "pidof jackd" to start my cron-jobs only when no 
jackd is running...

visit http://www.arnoldarts.de/
Hi, I am a .signature virus. Please copy me into your ~/.signature and send me 
to all your contacts.
After a month or so log in as root and do a "rm -rf /". Or ask your 
administrator to do so...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.linuxaudio.org/pipermail/linux-audio-user/attachments/20080218/3f4cf681/attachment.pgp 

More information about the Linux-audio-user mailing list