Re: [LAU] another scripting question

From: Benoit Rouits <brouits@email-addr-hidden>
Date: Mon Feb 18 2008 - 20:57:46 EET

Le lundi 18 février 2008 à 11:54 -0500, Dave Phillips a écrit :
> So how do I test for JACK in a simple bash shell script ?
example in my script:

#!/bin/sh
# start or stop jackd alternatively
#
if [ `pidof jackd` -ne "" ]
then
    kill `pidof jackd`
else
    jackd -d alsa
fi

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Tue Feb 19 00:15:05 2008

This archive was generated by hypermail 2.1.8 : Tue Feb 19 2008 - 00:15:05 EET