Sujet : Re: 5 Fun Linux Commands You Should Try At Least Once
De : mh+usenetspam1118 (at) *nospam* zugschl.us (Marc Haber)
Groupes : comp.os.linux.miscDate : 04. Apr 2025, 14:40:46
Autres entêtes
Organisation : private site, see http://www.zugschlus.de/ for details
Message-ID : <vsongu$14lpj$1@news1.tnib.de>
References : 1 2 3
User-Agent : Forte Agent 6.00/32.1186
not@telling.you.invalid (Computer Nerd Kev) wrote:
rbowman <bowman@montana.com> wrote:
Okay, enough of that... I don't use -9 but killall is handy in small
doses.
>
I use -KILL instead of -9, but if you've got a program that's gone
nuts and it's ingoring SIGTERM, what else can you do? True you
shouldn't need to use it with intended behaviour like in the
article though.
>
Another handy signal for killall is -0, which does nothing. It's
handy because you can check whether a process with a certain name
exists or not, eg.
>
$ killall -q -0 tin && echo "Tin is running"
Tin is running
Come on, boys, we have the 2020ies, and pgrep and pkill have been
around for two decades now.
I am an old fart myself, and I refrain from using killall since it
does different things on Solaris than on Linux.
Greetings
Marc
-- ----------------------------------------------------------------------------Marc Haber | " Questions are the | Mailadresse im HeaderRhein-Neckar, DE | Beginning of Wisdom " | Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402