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
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