> >               commandname
> >                      All processes invoked using that  name  will
> >                      be signaled.
> 
> OK, we know you can use other commands to kill processes by name, but
> can anyone answer Voktek's question, or explain why the documentation
> for kill seems to imply that the kill command can kill by name if it
> can't?
> 

That's not in the debian man page. Seems to be in the redhat one
though

kill [ -s signal | -p ] [ -a ] [ -- ] pid 

I can't get the -p, -a or pid set to "commandname" options to work.

I'd say the man page is bogus

-Colin

       -a     Do not restrict the commandname-to-pid conversion to
       processes with the same uid as the present process.

       pid... Specify the list of processes that kill should signal.  Each pid can be  
one
              of five things:

              n      where n is larger than 0.  The process with pid n will be 
signaled.

              0      All processes in the current process group are signaled.

              -1     All processes with pid larger than 1 will be signaled.

              -n     where  n is larger than 1.  All processes in process group n are 
sig�
                     naled.  When an argument of the form `-n' is given, and it  is  
meant
                     to denote a process group, either the signal must be specified 
first,
                     or the argument must be preceded by a `--' option, otherwise it  
will
                     be taken as the signal to send.

              commandname
                     All processes invoked using that name will be signaled.

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to