killp - Send signal to processes by PID until they end



NAME

killp - Send signal to processes (kill, terminate, ...) by PID until they end

killpgrp - Send signal to processes (kill, terminate, ...) by PGID until they end

killcmd - Send signal to processes (kill, terminate, ...) by command line until they end

killexe - Send signal to processes (kill, terminate, ...) by executable path until they end


SYNOPSIS

killp [OPTIONS] <PID> [<PID> [...]]


DESCRIPTION

Send signal to process(es) by PID, PGID (process group ID), command name, or by executable path until the selected process(es) exists. Ie. in usuall invocation, eg. killcmd java tries to SIGTERM all java processes until at least 1 exists, and returns only afterwards.


OPTIONS

The following options control how killcmd and killexe finds processes. Semantics are the same as in grep(1):

  -E --extended-regexp
  -F --fixed-strings
  -G --basic-regexp
  -P --perl-regexp
  -i --ignore-case
  -w --word-regexp
  -x --line-regexp

Other options:

-a

killcmd looks for matching substring in the command's arguments too. By default, only the command name is considered (first word in the command line).

-f

killcmd and killexe look for matching substring in the command's full path too. By default, only the basename is considered.

[--]signal=SIG, [-]s=SIG

Which signal to send. See kill(1) and signal(7) for valid SIG signal names and numbers.

[--]interval=IVAL

How much to wait between attempts. See sleep(1) for valid IVAL intervals.

-q, --quiet
-v, --verbose

By default, prints what is being killed on the second attempt onward. With --verbose, prints the first attempt too. With --quiet, does not print what is being killed.

-n, --dryrun


SEE ALSO

kill(1), pkill(1), pgrep(1), killall(1), signal(7)