So you're looking at the string output of pidof? If proc's not there, I don't think that: if [ "" ] is highly meaningful. (Hence the -z suggestion?) When I use pidof to probe for a process, I use its exit status: if pidof <foo> >/dev/null -- Jim