[orbit-user] awk help

Kishore Ramachandran kishore at winlab.rutgers.edu
Thu May 8 12:36:33 EDT 2008


Hi Bin:

kill expects its arguments on command line, so you should do:

kill `ps aux | awk '/protol/ {print $2}'

regards,
Kishore

On Thu, May 8, 2008 at 12:29 PM, <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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://orbit-lab.org/pipermail/orbit-user/attachments/20080508/540f75bc/attachment.html>


More information about the orbit-user mailing list