Unix/Linux Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

How do i kill -9 multiple processors at once

UNIX for Dummies Questions & Answers


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 03-22-2006
esh esh is offline
Registered User
 
Join Date: May 2003
Last Activity: 23 January 2008, 2:45 AM EST
Location: south africa
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
How do i kill -9 multiple processors at once

Hi There


How do i kill multiple processors on unix version 5.05, I know how to kill a single processors individually (e.g kill -9 process number),but i need to do it daily as some users dont log off the systems and keeps processor's running, and when the night jobstream executes it falls over showing processors in use.

Your response will be highly appreciated.

Many Thks

Esh
Sponsored Links
    #2  
Old Unix and Linux 03-22-2006
RTM's Unix or Linux Image
RTM RTM is offline Forum Advisor  
Registered User
 
Join Date: Apr 2002
Last Activity: 17 October 2014, 8:46 PM EDT
Location: On my motorcycle
Posts: 3,093
Thanks: 1
Thanked 33 Times in 9 Posts
kill -9 pid pid pid pid
Sponsored Links
    #3  
Old Unix and Linux 03-22-2006
gauravgoel gauravgoel is offline
Registered User
 
Join Date: Dec 2005
Last Activity: 9 July 2008, 4:51 AM EDT
Location: India
Posts: 218
Thanks: 0
Thanked 1 Time in 1 Post
have you tried using

kill -9 pid1 pid2 pid3 .....
    #4  
Old Unix and Linux 03-22-2006
esh esh is offline
Registered User
 
Join Date: May 2003
Last Activity: 23 January 2008, 2:45 AM EST
Location: south africa
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for below , but however I want to place same in a script to execute automatically b4 the jobstream kicks in.Instead of me typing in (kill -9 1021 1022 1023 etc)
Sponsored Links
    #5  
Old Unix and Linux 03-22-2006
vino's Unix or Linux Image
vino vino is offline Forum Advisor  
Supporter (in vino veritas)
 
Join Date: Feb 2005
Last Activity: 12 March 2015, 5:33 AM EDT
Location: Sydney, Down Under
Posts: 2,848
Thanks: 0
Thanked 13 Times in 13 Posts
What does the process name associated with each pid look like ?

You can use something like this.
Code:
/bin/kill -p "processname"

. It will give you the pid of the corresponding processname.
Sponsored Links
    #6  
Old Unix and Linux 03-22-2006
gauravgoel gauravgoel is offline
Registered User
 
Join Date: Dec 2005
Last Activity: 9 July 2008, 4:51 AM EDT
Location: India
Posts: 218
Thanks: 0
Thanked 1 Time in 1 Post
one more thing it is always better to use kill -15 rather than kill -9, which is explained in this post
Sponsored Links
    #7  
Old Unix and Linux 03-22-2006
esh esh is offline
Registered User
 
Join Date: May 2003
Last Activity: 23 January 2008, 2:45 AM EST
Location: south africa
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Vino

Thanks , still not working
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
kill multiple processes by name catalinawinemxr Shell Programming and Scripting 2 11-07-2011 07:41 PM
Java Process to use Multiple Processors us_pokiri Linux 2 07-28-2011 01:02 PM
kill multiple instances of the same program ipzig Shell Programming and Scripting 12 12-17-2007 01:42 AM
No: of processors bishweshwar UNIX for Advanced & Expert Users 3 11-14-2006 05:38 AM
When kill doesnt work, how to kill a process ? VijayHegde UNIX for Advanced & Expert Users 3 05-12-2006 04:24 PM



All times are GMT -4. The time now is 03:01 AM.