#!/bin/sh if [ $# -eq 0 ]; then echo "usage: midplay file|directory ..." >&2 exit 1 fi pstext=$(ps xa | grep ':[0-9][0-9],[0-9][0-9] java.*JukeCon') if [ "$pstext" != "" ]; then kill -9 $(echo "$pstext" | cut -f 1 -d ' ') 1>/dev/null 2>&1 sleep 1 fi while jukecon "$@" 1>/dev/null; do :; done # Remove possible temporary file created by Netscape if [ "$(dirname "$1")" = "/tmp" ]; then rm -f "$1" fi .