Přihlásit | Registrovat

killall

zasílá signály procesům podle jména (nepoužívá PID)

SYNTAXE

killall [-Z,–context pattern] [-e,–exact] [-g,–process-group] [-i,–interactive] [-q,–quiet] [-r,–regexp][-s,–signal signal] [-u,–user user] [-v,–verbose] [-w,–wait] [-I,–ignore-case] [-V,–Version] [–] name …
killall -l
Killall -V,–version

POPIS

killall odešle signál všem běžícím procesům určeným v příkazu. Pokud signál není určen, odešle se implicitní SIGTERM.
Signály mohou být určeny jménem (např. -HUP) nebo číslem (např. -1) nebo pomocí parametru -s.

PŘEKLAD NENÍ DOKONČEN

Jestliže název příkazu není regulérní výraz (volba -r) a obsahuje lomítko (/), procesy vykonávající že <který> zvláštní soubor bude vybraný pro zabíjení, nezávislý na jejich jménu. If the command name is not regular expression (option -r) and contains a slash (/), processes executing that particular file will be selected for killing, independent of their name.

     killall returns a zero return code if at least one process has been killed for each listed command, or no commands  were listed and at least one process matched the -u and -Z search criteria. killall returns non-zero otherwise.
     A killall process never kills itself (but may kill other killall processes).

OPTIONS

  1. e, –exact

Require an exact match for very long names. If a command name is longer than 15 characters, the full name

            may be unavailable (i.e. it is swapped out). In this case, killall will kill everything that matches within
            the  first  15  characters.  With  -e, such entries are skipped.  killall prints a message for each skipped
            entry if -v is specified in addition to -e,
  1. I, –ignore-case

Do case insensitive process name match.

  1. g, –process-group

Kill the process group to which the process belongs. The kill signal is only sent once per group, even if

            multiple processes belonging to the same process group were found.
  1. i, –interactive

Interactively ask for confirmation before killing.

  1. l, –list

List all known signal names.

  1. q, –quiet

Do not complain if no processes were killed.

  1. r, –regexp

Interpret process name pattern as an extended regular expression.

  1. s, –signal

Send this signal instead of SIGTERM.

  1. u, –user

Kill only processes the specified user owns. Command names are optional.

  1. v, –verbose

Report if the signal was successfully sent.

  1. V, –version

Display version information.

  1. w, –wait

Wait for all killed processes to die. killall checks once per second if any of the killed processes still

            exist and only returns if none are left.  Note that killall may wait forever if the signal was ignored, had
            no effect, or if the process stays in zombie state.
  1. Z, –context

(SELinux Only) Specify security context: kill only processes having security context that match with given

            expended regular expression pattern. Must precede other arguments on the command line.  Command  names  are
            optional.

FILES

     /proc     location of the proc file system

KNOWN BUGS

     Killing  by  file only works for executables that are kept open during execution, i.e. impure executables can't be
     killed this way.
     Be warned that typing killall name may not have the desired effect on non-Linux systems, especially when done by a
     privileged user.
     killall  -w  doesn't  detect  if  a  process disappears and is replaced by a new process with the same PID between
     scans.
     If processes change their name, killall may not be able to match them correctly.
Mandriva Wiki
system/prikazovy_radek/monitoring/killall.txt · Poslední úprava: 2010/12/12 11:28 autor: yullaw