KILL(1) General Commands Manual KILL(1)NAME
kill, broke - print commands to kill processes
SYNOPSIS
kill name
broke
DESCRIPTION
Kill prints commands that will cause all processes called name and owned by the current user to be terminated. Use the send command of
81/2(1), or pipe the output of kill into rc(1) to execute the commands.
Kill suggests sending a kill note to the process; the same message delivered to the process's ctl file (see proc(3)) is a surer, if heavy
handed, kill, but is necessary if the offending process is ignoring notes.
Broke prints commands that will cause all processes in the Broken state and owned by the current user to go away. When a process dies
because of an error caught by the system, it may linger in the Broken state to allow examination with a debugger. Executing the commands
printed by broke lets the system reclaim the resources used by the broken processes.
SOURCE
/rc/bin/kill
/rc/bin/broke
SEE ALSO ps(1), stop(1), proc(3)KILL(1)
Check Out this Related Man Page
KILL(2) System Calls Manual KILL(2)NAME
kill - send signal to a process
SYNOPSIS
kill(pid, sig);
DESCRIPTION
Kill sends the signal sig to the process specified by the process number in r0. See signal(2) for a list of signals.
The sending and receiving processes must have the same effective user ID, otherwise this call is restricted to the super-user.
If the process number is 0, the signal is sent to all other processes in the sender's process group; see tty(4).
If the process number is -1, and the user is the super-user, the signal is broadcast universally except to processes 0 and 1, the scheduler
and initialization processes, see init(8).
Processes may send signals to themselves.
SEE ALSO signal(2), kill(1)DIAGNOSTICS
Zero is returned if the process is killed; -1 is returned if the process does not have the same effective user ID and the user is not
super-user, or if the process does not exist.
ASSEMBLER
(kill = 37.)
(process number in r0)
sys kill; sig
KILL(2)
I meant old not hold :)
I need to kill a process if it's over an hour old and then send an e-mail of the list that was killed.....?
I need to kill ps -ef | grep stashd | grep ' older than an hour?'
#! /bin/bash
if test ps -ef | grep <stashd> (Is over an hour old)???? >>stashd_old.txt
... (9 Replies)
Hi,
I want to write a script which can generate a kill list for killing process, program name start with f60.., which have been running for more than 8 hours, the list output should looks like:
kill -9 4444176
kill -9 4674520
kill -9 4454180
kill -9 4994523
Can anyone help how to write... (10 Replies)
Dears all
i have an AIX box in which i am facing a problem with a process as below:
/usr/dt/bin/dtexec -open 0 -ttprocid
and each time i am killing this process with "kill -9" then it run again after a while.
any ideas or solutions will be appreciated. (13 Replies)
Hi,
I read a set of processes with:
ps -eaf|grep oracleTRLV
The result is:
oracle 23253 1 0 15:14:11 ? 0:00 oracleTRLV (LOCAL=NO)
oracle 23301 1 0 15:15:07 ? 0:00 oracleTRLV (LOCAL=NO)
oracle 22914 1 0 15:11:19 ? 0:00 oracleTRLV (LOCAL=NO)
How to I kill the "oracleTRLV" ones? Is there... (17 Replies)
I'm trying to kill a process which is in sleep mode and the parent PID is 1 but I can't kill it with "kill -9" command. Is there a way to kill this process without rebooting?
Any help will be appreciated.
Steve (10 Replies)
Hi All,
I am writing a part of a script that needs to grep for process ID's for a certain process, and then kill them if they are greater then 0. Here is what I have so far.
Process=$(ps -ef | grep Proc | grep -v Proc)
if
then
echo "Process Is not running"
else
kill... (9 Replies)
I have a DNA file like below and I am able to write a short program which finds/not an input motif, but I dont understand how I can include in the code to report which position the motif was found. Example I want to find the first or all "GAT" motifs and want the program to report which position... (12 Replies)
Can someone tell my why every time I try to use 7z it freezes my system? I can't move my mouse, I can't type, I can't kill my xsession. I then restart my system and everything returns to normal. When I try to use 7z my system again freezes. (11 Replies)
The "write failed: Broken pipe" message is reported by the file sending PC which run my writed network device driver while 500MB or 900MB is sended!
What does the message mean? Does this mean there is a bug in my driver?
li,kunlun (11 Replies)
The following "NAME" is the keyword to use to kill all processes containing it. While the command is very useful, it is user-unfriendly to type it in terminal. I've tried alias and make it a shell script but as NAME is inside awk so the problem becomes complicated. Could anybody advise?
ps -ef |... (13 Replies)
Hi Guys
I am running a small script to find a process id , ask user if they want to kill the process and then action it Yes or no
Here is what i have
#/bin/bash
ps -l | grep -i $1 | awk '{print "Process id of '$1' is "$4""}'
echo "Do you want to kill this process (Y/N)"
read action... (10 Replies)
Good morning, In a Production environment ive seen this command that kills processes
kill -9 -1
Because i am in a production environmet i can not execute this comamnd, so i would like to know what is the difference for the conventional kill -9 PID ?
Thanks a lot (11 Replies)