thanks Lakris!! it works!!! thanks!!!
but if i wanted to grep the input from user and kill the process how should i do it? i try but couldnt work!!!
Code:
echo "enter program name"
read input
ps -ef U username|grep $input | awk '{print $2}' | xargs killall