File contents parsing

Suppose I have a file which has either the contents

CALLED on <date & time>
RUNNING on <date & time>

or

CALLED on <date & time>
RUNNING on <date & time>
SHUTTING_DOWN on <date & time>
DOWN on <date & time> 

I don't care about the <date & time> part... I just need to know if the last line in that file starts with 'RUNNING' or 'DOWN' (have to run another script accordingly), how would I do this without Perl?

Thank you!

tail -1 myfile | grep -q -e '^RUNNING' -e '^DOWN'
if [[ $? -eq 0 ]] ; then # eithe DOWN or RUNNING found
 # run script one
else
  # run script two
fi
#!/usr/bin/ksh

flg=$(tail -1 file | egrep -ch "^RUNNING|^DOWN")

if [ $flg -ne 0 ]
then
	echo "Call another command here...!!"
fi

Another way using KSH

if [[ "$(tail -1 inputfile)" = @(RUNNING|DOWN) ]]
then
    echo "Running or Down !"
else
    echo "Other state"
fi

Jean-Pierre.