Grep for process in a ksh script

Hi
I'm trying to catch a particular process (XYZ) running using a ksh script. Like So..

VarPS=`ps -ef |grep XYZ |grep -v grep`

However this seems to find the process of the script itself - not the process 'XYZ'

Asked in Error - I found my own typo...

thanks anyway Skrynesaver

pgrep process_name