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


HTH,

-Sean

On Wed, Dec 10, 2008 at 9:34 AM, John <[EMAIL PROTECTED]> wrote:
> When I type the command "pulseaudio --check" I get nothing.
>
> The man pages say simply "Check for a running daemon"; shouldn't there
> be **some** response?!
>
> My pulseaudio seems to be working fine--I'm just trying to learn what's what.
>
> John
> _______________________________________________
> pulseaudio-discuss mailing list
> [email protected]
> https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss
>
_______________________________________________
pulseaudio-discuss mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss

Reply via email to