while true; do ps -ef |grep pro[c]ess > /dev/null && sleep 100 || <run process> ; done ð÷ while true; do ps -ef |grep na[m]ed > /dev/null && sleep 100 || /usr/sbin/named -u named -n 1; done Þ while true; do ps -ef |grep na[m]ed > /dev/null && sleep 100 || /etc/init.d/named restart; done