Hi does anyone know
how I can kill a process by specifying its name in a shell script?
e.g. with ps -C rsvpd
we get the ps output for that process. How can we kill that process? The first value in the string returned is PID.
can we do
kill -9 pid
??
Also,can we get status of the ps -C (i.e. determine if that process is presently running),and if yes,then kill it?
how I can kill a process by specifying its name in a shell script?
e.g. with ps -C rsvpd
we get the ps output for that process. How can we kill that process? The first value in the string returned is PID.
can we do
kill -9 pid
??
Also,can we get status of the ps -C (i.e. determine if that process is presently running),and if yes,then kill it?