Re: Kill app

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To save you a bit of time (and typing), you can also use pkill. In your
example, it would be:

pkill mozilla

OR you could also use

pkill -9 mozilla

Cheers,

Chris Williams


On Thu, 2002-12-26 at 21:54, Michael Fratoni wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Thursday 26 December 2002 11:16 pm, anthony baldwin wrote:
> > About that kill app function.
> > I have run "man kill" and it is not in any decipherable language
> > resembling english.  I have, from time to time, had apps hang and not
> > respond and the only recourse I have found is to log out.  I know that
> > is a weak way to handle the issue, but I can ont figure for the life of
> > me what I am supposed to do with that "kill" command.  What the heck is
> > a pid and what signal or whatever belongs to the apps?!  I'm lost on
> > that one.
> 
> Suppose Mozilla has hung, and you want to make it go away.
> 
> You can try 'ps ax | grep mozilla'
> $ ps ax | grep mozilla
>  9769 ?        S      0:02 /usr/lib/mozilla-1.0.1/mozilla-bin
> 
> The PID (process id) is the first number in the string. Now, we have a 
> target for the kill command. (9769)
> 
> You can now tell mozilla to go away:
> kill -9 9769 (kill a single process)
> killall -KILL mozilla-bin (kill all mozilla-bin processes)
> 
> The above sends the process a SIGKILL.
> 'kill -l' lists the various signals by number and name.
> man 7 signal explains some of the signals.
> 
> Or, you can ask nicely:
> kill -15 9769
> killall -TERM mozilla-bin
> 
> The above sends the process a SIGTERM. SIGTERM will allow a process to 
> clean up after itself. zombie processes will often fail to respond to a 
> SIGTERM. (Then again, they sometimes refuse to respond to a SIGKILL as 
> well.)
> 
> - -- 
> - -Michael
> 
> pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
> Red Hat Linux 7.{2,3}|8.0 in 8M of RAM: http://www.rule-project.org/
> - --
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
> 
> iD8DBQE+C9z1n/07WoAb/SsRAk8nAKCFZ1yhlynlrRZdSKfLffwBf9inyACgho9Y
> NqxyRE96OD5AKs/7MiLyiaE=
> =8i9X
> -----END PGP SIGNATURE-----

====================================
"If you get to thinkin' you're a person of some influence,
try orderin' someone else's dog around."
--Cowboy Wisdom




-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux