#! /bin/sh # ## catsaway - watch for a user to log out, then print a message while who | grep "^barb " > /dev/null do sleep 60 done echo "The cat's away..."