I\'m starting a number of screens in a bash script, then running django\'s runserver command in each of them. I\'d like to be able to programmatically stop them
You can get the PID of a particular process like MySQL by using following commands:
ps -e | pgrep mysql
This command will give you the PID of MySQL rocess. e.g, 13954
Now, type following command on terminal.
kill -9 13954
This will kill the process of MySQL.