Re: [opensuse] Help Killling Process



On Tuesday 20 March 2007 11:58, Donald D Henson wrote:
I seem to have gotten myself into a situation where a Firefox process
will not die nor will it display anything. (The problem seems to have
something to do with You Tube.) When I try to start up another instance
of Firefox, I get an error message that tells me to either close the
current process or to reboot the system. Rebooting is not a good
solution. I remember from the 'old days' that there is a cli command to
identify a process id and another one to kill a process. I've searched
my memory and the User Manual but cannot identify those two commands.
Any assistance will be sincerely appreciated.


Hi Donald.

To identify a process and extract its Process ID (PID,) use the 'ps'
command:

ps -eaf|grep <enter name of process here>

This will list any currently running processes with the name specified
The brackets are there to for context. Don't include them in the command.

The output from this command will list the PIDs of the matching processes
and the PIDS of the parents of those processes - like this:

$ ps -eaf|grep xterm
jvollmer 30239 30215 0 12:07 pts/2 00:00:00 xterm
jvollmer 30257 30215 0 12:07 pts/2 00:00:00 grep xterm

(the first number for each process is the PID, the second is the PID of the
parent)


Locate the PID for the process you wish to terminate and use the 'kill'
command:

kill -9 <PID>

Again, the brackets are there for context. Don't include them in your
command.

To kill the xterm process in the above example, use the command:

kill -9 30239

This command sends a specified signal number to the process identified by
PID. The signal is a number between 1 and 64. Number 9 means kill the
process Identified by <PID>. For a complete list of available signals,
type:

kill -l

For more information, see the man pages for 'ps' and 'kill.'

--
JAY VOLLMER JVOLLMER@xxxxxxxx
TEXT REFS DOUBLEPLUSUNGOOD SELFTHINK
VERGING CRIMETHINK - IGNORE FULLWISE

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [opensuse] Help Killling Process
    ... will not die nor will it display anything. ... I remember from the 'old days' that there is a cli command to ... identify a process id and another one to kill a process. ... This will give you a listing of the processes and their pid' although ...
    (SuSE)
  • Re: 7.1RC1: system hang
    ... pid ppid pgrp uid state wmesg wchan cmd ... Tracing command vmstat pid 96381 tid 100276 td 0xc756caf0 ...
    (freebsd-stable)
  • Re: openoffice.org wont open files on my usb drive
    ... First check whether openoffice is running/not by the following command ... Here you get the process id (pid) of open office ... Kill the process by the following command ...
    (Debian-User)
  • Re: Question about a dd command.
    ... elmo wrote: ... basic 'dd' command that will copy and display the transfer action. ... variable named "pid" so we can use it later to send signals to the process. ... kill $pid: Kill the actual process. ...
    (Ubuntu)
  • Re: killing child processes
    ... It's that the kill command does nothing. ... >> UID PID PPID TTY STIME COMMAND ... but not the sleep command that is it's ...
    (comp.unix.shell)