On Wed, Dec 10, 2008 at 9:53 AM, Sean McNamara <smcnam at gmail.com> wrote: > It's based on exit codes :) > > If pulseaudio is not running, the following command will not produce "Hello": > > pulseaudio --check && echo "Hello" > > If pulseaudio _is_ running, it will produce "Hello". > > Anything you need to do that involves checking for a running > pulseaudio can be processed in a bash or sh shell like this: > > export PULSEAUDIO_RUNNING=0 > pulseaudio --check && export PULSEAUDIO_RUNNING=1 > if [ $PULSEAUDIO_RUNNING == 0 ]; then > echo "PulseAudio is not running." > else > echo "PulseAudio is running." > fi Sean, thanks for turning on the lights! I'll play with it now. John