Re: [LAU] another scripting question

From: Arnold Krille <arnold@email-addr-hidden>
Date: Mon Feb 18 2008 - 19:50:45 EET

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...

Arnold

-- 
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...

_______________________________________________
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:05 2008

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