I kill the process eg. kill 87332 , there is no output will be shown on the shell , ( if there is a error , it will be shown the error message eg. no such pid etc ) , if I want to see the message that let me know the system has actually kill the message , is it possible ? thx
Unix is the silent type. It assumes that you don't want to be festooned with "Are you sure?" dialogues and confirmation messages.
But you could do something like....
kill -9 <my_pid> && echo "Sent the thing a kill -9!"
Obviously - sometimes a straight kill won't kill a hung process (anyway, the "kill" command name is misleading - it should be send_signal or something - it doesn't implicitly mean you're trying to kill a process... anyway...).
Maybe write a script.... attempt to kill nicely.... grep through ps output to see if process still exists.... if it does, kill forcefully.... if it doesn't, exit.... etc, etc....
Cheers
ZB