<?xml version="1.0" encoding="windows-1252"?>
<node id="806070" title="Re: Identifying whether a process is running" created="2009-11-09 18:15:53" updated="2009-11-09 18:15:53">
<type id="11">
note</type>
<author id="414875">
snoopy</author>
<data>
<field name="doctext">
If you already know the process id(s), and own the processes, the [doc://kill] builtin function might be of use.
&lt;p&gt;
From the doco:

&lt;pre&gt;
   kill SIGNAL, LIST
   .... 
        $cnt = kill 1, $child1, $child2
        kill 9, @goners;

    If SIGNAL is zero, no signal is sent to the process, but the
    kill(2) system call will check whether it's possible to send
    a signal to it (that means, to be brief, that the process is
    owned by the same user, or we are the super user).  This is
    a useful way to check that a child process is alive.
&lt;/pre&gt;</field>
<field name="root_node">
806060</field>
<field name="parent_node">
806060</field>
</data>
</node>
