Re: another scripting question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 18, 2008 11:54 AM, Dave Phillips <dlphillips@xxxxxxxxxx> wrote:
> Greetings,
> So how do I test for JACK in a simple bash shell script ?

JACK_PID=`ps --no-headers -o pid -C jackd`
if [ -n "$JACK_PID" ]; then
    # jackd is up
else
    # jackd is down
fi
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux