I think I heard John Baldwin say:
>
>On 27-May-00 Randall Hopper wrote:
>> [EMAIL PROTECTED]:
>>  |Randall Hopper <[EMAIL PROTECTED]> said: 
>>  |
>>  |> I have a script I run named "newroot".  I want to kill it with killall.
>>  |>         
>>  |>     > ps -ax | grep newroot
>>  |>      842     1 rhh    /bin/sh /home/rhh/bin/newroot 360
>>  |> 
>>  |You will have to do something like
>>  |
>>  |kill `ps -ax | grep newroot | sed -e '^[0-9]*'`
>> 
>> Ok.  I thought I'd at least try to use the system version, but sounds like
>> it's just not as flexible as killall's on other systems.

IMHO, killall is a terrible script to use since it's behavior is so
different on different machines.  I've seen newbie sysadmins do bad
things with killall on my Solaris machines:  Here is the start of 
Solaris' manpage:

DESCRIPTION
     killall is used by shutdown(1M) to kill all active processes
     not directly related to the shutdown procedure.

     killall terminates all processes with open files so that the
     mounted file systems will be unbusied and can be unmounted.

     killall sends signal (see kill(1)) to the active  processes.
     If no signal is specified, a default of 15 is used.

As you can see, when they type 'killall netscape' when they are r00t,
everything gets killed.  

-matthew



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to