[ale] Syntax problem

Geoffrey esoteric at 3times25.net
Wed Aug 24 15:00:46 EDT 2005


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



More information about the Ale mailing list