#!/bin/bash running="$(pidof gmpc)" if [ -n "$running" ] ; then echo already running! beep -f 500 -l 100 else gmpc fi