How do i kill -9 multiple processors at once


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How do i kill -9 multiple processors at once
# 1  
Old 03-22-2006
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
# 2  
Old 03-22-2006
kill -9 pid pid pid pid
# 3  
Old 03-22-2006
have you tried using

kill -9 pid1 pid2 pid3 .....
# 4  
Old 03-22-2006
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)
# 5  
Old 03-22-2006
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.
# 6  
Old 03-22-2006
one more thing it is always better to use kill -15 rather than kill -9, which is explained in this post
# 7  
Old 03-22-2006
Hi Vino

Thanks , still not working
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Kill multiple processes ran by root

Hi all, I have about 5-6 daemons specific to my application running in the background. I am trying to write a script to stop them. Usually, I run them as a non-root ID, which is fine. But for some reason the client insists on using root. I do have sudo. I just tried something like this ... (4 Replies)
Discussion started by: jeffs42885
4 Replies

2. Proxy Server

Samba kill the locked files from a useraccount by multiple smbd pids

Details Samba server: Release: 5.10 Kernel architecture: sun4u Application architecture: sparc Hardware provider: Sun_Microsystems Kernel version: SunOS 5.10 Generic_142909-17 Samba version: Samba version 3.5.6 Smb.conf file section Global: # smb.conf for Airbus Industries fuer... (0 Replies)
Discussion started by: Jean-Guillaume
0 Replies

3. Infrastructure Monitoring

Multiple Processors and Load Average

The following information shows that there are in total 4 Processors on this machine: $ grep -i name /proc/cpuinfo model name : Dual-Core AMD Opteron(tm) Processor 2218 model name : Dual-Core AMD Opteron(tm) Processor 2218 model name : Dual-Core AMD Opteron(tm) Processor 2218... (1 Reply)
Discussion started by: indiansoil
1 Replies

4. Shell Programming and Scripting

Kill an specific process ID using the KILL and GREP commands

Good afternoon I need to KILL a process in a single command sentence, for example: kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'` That sentence Kills the process ID corresponding to the program CAL255.4ge. However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies

5. Shell Programming and Scripting

kill multiple processes by name

Want to kill multiple processes by name. for the example below, I want to kill all 'proxy-stagerd_copy' processes. I tried this but didn't work: >> ps -ef|grep proxy_copy root 991 986 0 14:45:34 ? 0:04 proxy-stagerd root 1003 991 0 14:45:49 ? 0:01... (2 Replies)
Discussion started by: catalinawinemxr
2 Replies

6. Linux

Java Process to use Multiple Processors

Hi All, Here is the Issue.. we have an Application that when starts runs fine..but after 2-3 hours the performance of the process wil become very slow.. Initially when we look at the CPU utilization, its very less..but when the process starts running slow..we identified that it is using... (2 Replies)
Discussion started by: us_pokiri
2 Replies

7. Shell Programming and Scripting

kill multiple instances of the same program

Hi, I know that the answer to this is very simple, since I saw somebody do it some time back..but I forgot how. The problem is, I have multiple instances of the same program running simultaneously and I want to kill them all in a single command. I know that it can be done using awk '{print... (12 Replies)
Discussion started by: ipzig
12 Replies

8. UNIX for Advanced & Expert Users

No: of processors

which unix command can be used to know the no: of processors running on that machine... version used:- Solaris 8.0 (3 Replies)
Discussion started by: bishweshwar
3 Replies

9. UNIX for Advanced & Expert Users

When kill doesnt work, how to kill a process ?

Hi All, I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages. How can i terminate this daemon ? ? ? Regards, Vijay Hegde (3 Replies)
Discussion started by: VijayHegde
3 Replies

10. UNIX for Dummies Questions & Answers

How do I determine # of processors ...

I have a console server that runs some form of UNIX/Linux, but I get a bash shell, and I want to determine how many processor (what speed) and them amount of RAM in the system. (2 Replies)
Discussion started by: bbrandeb49
2 Replies
Login or Register to Ask a Question