Please delete the $ in the worker name, should be like this KMD_WORKER="MSMDE"
do the same with ZEN too, I remember fullzero replied to one of the similar issue.
Give it a try and let me know if it has worked for you.
if it still doesn't type 'ps aux | grep miner' when you see the 'screen terminated error' and paste the result here.
There is no screen to be resumed matching miner.
/home/m1/2unix: line 30: 2280 Terminated bash '/home/m1/3main'
here is quake return for ps aux | grep miner
m1 2838 0.0 0.0 14224 928 pts/16 S+ 16:32 0:00 grep --color=auto miner
if [ $COIN == "KMD" ]
then
if [ $EWBF_VERSION == "3_3" ]
then
HCD='/home/m1/KMD/v3_3/miner'
fi
if [ $EWBF_VERSION == "3_4" ]
then
HCD='/home/m1/KMD/v3_4/miner'
fi
KMDADDR="$KMD_ADDRESS.$KMD_WORKER"
screen -dmS miner $HCD --eexit 3 --fee $EWBF_PERCENT --pec --server $KMD_POOL --user $KMDADDR --pass z --port $KMD_PORT;
if [ $LOCALorREMOTE == "LOCAL" ]
then
screen -r miner
fi
BITCOIN="theGROUND"
while [ $BITCOIN == "theGROUND" ]
do
sleep 60
done
fi