[orbit-user] awk help

zanb at eden.rutgers.edu zanb at eden.rutgers.edu
Thu May 8 12:29:16 EDT 2008


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




More information about the orbit-user mailing list