Re: process tbl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 28Nov2014 17:24, bruce <badouglas@xxxxxxxxx> wrote:
thanks !  I discovered that the ps -ppid "parentID" would return the
list of child pids which works, but thanks..!

You should bear in mind that that will probably be a GNU "ps" specific option. On Fedora you're fine; on other UNIX platforms that may not be available.

I'm quite fond of "ps axf"; it is easy to type and informative, and shows the parent-child stuff visually in the listing, very nice. It (the "f" option) is also GNU ps specific.

Cheers,
Cameron Simpson <cs@xxxxxxxxxx>

On Fri, Nov 28, 2014 at 3:36 PM, Cameron Simpson <cs@xxxxxxxxxx> wrote:
On 28Nov2014 13:19, bruce <badouglas@xxxxxxxxx> wrote:

A test app does a fork, creates children processes.
Is there a way to view the procTBL "ps" to be able to see that a
process is a "child" process?
I know you can see when a child has stopped, but the parent is still
running.. but is there a way to see if there are "running" children,
some attribute that denotes i'm a child?
Or, is there some attribute that denotes the process has running children?


Every process has a parent process id (PPID), allowing you to deduce the
parent-child relationships.

The GNU ps "f" option will display the process tree with parent-child
relationships.
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux