#!/bin/bash count=`ps aux | grep gmpc | wc -l` if [ "$count >= 2" ] ; then echo "$count" echo already running! exit else gmpc exit fi