[LAU] another scripting question

Paul Coccoli pcoccoli at gmail.com
Mon Feb 18 12:25:41 EST 2008


On Feb 18, 2008 11:54 AM, Dave Phillips <dlphillips at woh.rr.com> 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



More information about the Linux-audio-user mailing list