LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

Rep: Reputation: 0
Writing shell script to kill processes


Hi,

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
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

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

Code:
killall cat
kill -9 `pgrep cat`
 
  


Reply


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


All times are GMT -5. The time now is 01:58 AM.

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