Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-19-2010, 03:15 AM   #1
LQ Newbie
Registered: Sep 2010
Posts: 8

Rep: Reputation: 0
Writing shell script to kill processes


I'am trying to write a script which when executed should kill all currently running cat processes.

Any help will be appreciated.

Thank you
Old 10-19-2010, 03:23 AM   #2
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Originally Posted by ben1173 View Post
kill all currently running cat processes.
This may come to your help.

killall cat
kill -9 `pgrep cat`


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to kill all processes except shell window? pinga123 Linux - Newbie 4 08-03-2010 02:35 AM
script to kill processes tradnbillies Linux - Software 2 04-28-2006 03:00 PM
shell script to kill processes running on port number varunbihani Linux - Newbie 13 12-06-2005 08:46 AM
script/command to kill processes running on particular port varunbihani Linux - General 2 07-08-2005 03:35 AM
shell script to kill all processes on specified port varunbihani Linux - General 1 04-19-2005 05:39 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration