All pastes #192214 Raw Edit

Shadowhand

public text v1 · immutable
·published 2006-10-05 19:33 UTC
rendered paste body
#!/bin/bash

mpd_running=$(ps ax |grep "bin/mpd" |grep -v "grep")

echo -n "mpd status: "
if [ -n "$mpd_running" ]; then
        echo "on"
else
        echo "off"
fi