On Mon, 2011-09-26 at 20:53 +0100, Martin Gregorie wrote: > <code> > pnum=$(ps -ef | gawk '$8 == /ntpd/ { print $2 }') > </code> > This should, of course, have been: <code> pnum=$(ps -ef | gawk '$8 == /hl2.exe/ { print $2 }') </code> ..but that's what happens when you copy & paste working code from the terminal and then don't read it afterwards. Martin