multiple pid kill

por | 11 abril, 2011

ps -ef|grep telnet|grep -v grep | awk '{print $2;}'|while read pid
do
kill -9 $pid
done

shell


#!/usr/bin/sh
ps -ef|grep $1|grep -v grep | awk '{print $2;}'|while read pid
do
kill -9 $pid
done

Categoría: Nix