#!/bin/sh while [ "${xmcmd}" != "quit" ] do read -p "xmms2>" xmcmd if [ "${xmcmd}" == "quit" ]; then exit 0 fi xmms2 ${xmcmd} echo "" done exit 0