How to kill a process on a remote server using python paramiko
问题 I have python script that connects to a remote server with lenny operating system. It runs a process in background using following line: shell.send("cd /my/directory/; nohup ./exec_name > /dev/null 2>&1 &\n") Then after some other codes, it sends a kill command to the server to stop process execution; here's the code: shell.send("kill -9 process_pid \n") It returns no error, but doesn't kill the process and it's still alive in the system. I also tried killall -9 process_name , but I got the