Dow_Hurst wrote: > What is the proper way to get this command to work: > > ssh machine "ps ax|grep namd|grep -v grep| awk '{print($1)}'|xargs kill" I don't think you want the double quotes and you can reduce your work as follows: ssh machine ps ax|awk '/namd/ {print $1}'|xargs kill -- Until later, Geoffrey