The problem when I use grep with pstree, like `pstree -p | grep
process_name` is that the lines of the child processes are also
included, what I want is to get only the PID of the parent process for
the kill.

Thanks.

On 5/11/05, Roger Filomeno <[EMAIL PROTECTED]> wrote:
> use pstree command to find the parent then issue a kill -9 that sucker. hehe
>
>
> On 5/11/05, Che Sosa <[EMAIL PROTECTED] > wrote:
> >
> > Hello list,
> > Do you have ideas how to effectively look for the pid of a parent
> > process. My objective is to create a script capable of a pid lookup
> > and can kill a certain parent process with `kill <pid>`.
> >
> > Thanks.
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to