#!/bin/sh # $Id$ # --------------------------------------------------------------------------- # Display the contents of the ices cue file # Eric Hameleers # #CURR_ICES=`ps wax | grep 'etc/ices.*conf' | grep -v grep | awk '{print $1}'` #CURR_ICES=`pidof ices` CURR_ICES=`cat /var/state/ices/ices.pid` if ! [ "$CURR_ICES" == "" ]; then echo "Ices proc. #: $CURR_ICES" desc=("Filename: " \ "Filesize: " \ "Bitrate: " \ "Playing time: " \ "% elapsed: " \ "Ices index: " \ "Artist: " \ "Song Title: ") index=0 while read cueline; do echo "${desc[$index]} $cueline" index=`expr $index + 1` done < /var/state/ices/ices.cue else echo "I found no running 'ices' ICECAST streamer!" fi