[orbit-user] awk help

Mesut Ali Ergin ergin at eden.rutgers.edu
Thu May 8 12:35:49 EDT 2008


Try pkill. Should have all you need.

--
MAE

zanb at eden.rutgers.edu wrote:
> Hi all,
>       I am writing a command to kill process using awk.
> 
> ps aux | awk '/protol/ {print $2}' | kill
> however it doesn't work.
> 
> I tried the following test,
> ps aux | awk '/process_name/ {print $2}' |sort -r
> it looks correct.
> 
> Thanks for any advice.
> 
> Bin Zan
> 
> 
> _______________________________________________
> orbit-user mailing list
> orbit-user at orbit-lab.org
> http://orbit-lab.org/cgi-bin/mailman/listinfo/orbit-user


-- 
Mesut Ali Ergin
ergin at winlab.rutgers.edu

Rutgers University, WINLAB,
Technology Centre of New Jersey,
671 Rt. 1 South, North Brunswick,
New Jersey, 08902-3390, USA

Phone: 862-368-6620
Fax:   732-932-6882


More information about the orbit-user mailing list