Kill Linux processes

We have an old messy thirdparty application at work that uses Oracle. Sometimes the application tends to lock the Oracle system and use a LOT of threads, leaving the system pretty much unresponsive. To be able to kill all 1000+ Oracle-plus processes i created a small script that kills all processes.

Put the following lines in scriptfile and call it “pkill.sh”.

Make the script executable with “chmod a+x pkill.sh”.

Run the script with the command “./pkill.sh ora” to kill all processes containing the name “ora”.

Have fun but use at your own risk!

Leave a Comment

Your email address will not be published. Required fields are marked *