[Gllug] killing a process and child processes

salsaman at xs4all.nl salsaman at xs4all.nl
Mon Jun 25 14:53:32 UTC 2007


On Mon, June 25, 2007 16:45, Anthony Newman wrote:
> salsaman at xs4all.nl wrote:
>> Hi all,
>> I need some code which does the following - send a sighup to a process
>> and
>> all child processes of that process.
>>
>> The only way I have found of doing this is "killall -HUP -g foo".
>> However
>> this is far from perfect (for example killall does not exist on *BSD).
>
>
> killall is also best avoided on Solaris ;)
>
>> Is there a better way to do this ?
>
> pkill?
>


-g means something completely different for pkill.


Gabriel.


-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list