Quoting Che Sosa <[EMAIL PROTECTED]>:

> 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.

Try using

  pgrep -o <name of process>

and then if u want to kill it, use

  pkill -o <name of process>



--
http://turing.cs.msuiit.edu.ph/~ddd/blog/

When you innovate, you've got to be prepared for everyone telling you you're
nuts! --larry ellison CEO, Oracle Corp.




_________________________________________
Mindanao State University - Iligan Campus
Visit us at http://www.msuiit.edu.ph.

_________________________________________________
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