Hi guys,
is there a way to send a term signal or kill a process on a remote node from a shell script?
thanks
Jon
Hi guys,
is there a way to send a term signal or kill a process on a remote node from a shell script?
thanks
Jon
ssh othernode "kill -TERM $PID"
Thanks for that
Pludi, do you have any idea how to end a process by name and not PID, since PID's change all the time.
thanks
Option 1: using killall <name>, but this will probably also get other processes by that name
Option 2: get the PID from ps -ef and then use it with kill
Option 1: using killall <name>, but this will probably also get other processes by that name
Option 2: get the PID from ps -ef and then use it with kill
or try
pkill <name>
risky thing
better
ps -ef | grep name
like pludi wrote
check the output, and then kill the process