#!/bin/bash FILENAME=`echo "$*" | sed -e 's/\\ / /g'` DARKPID=`pidof darkice` if [ -z $DARKPID ]; then aplay "$FILENAME" fi