USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND This doesn't work on OSX, but for FreeBSD it's the ps(1) command with -d option. PrintLineage(1, "") # recurse to print lineage starting with pid 1 Sub PrintLineage($$), $pid) # Add our pid to parent's kid # treeps - show ps(1) as process hierarchy - v1.0 07/08/14 Tested on OSX 10.6 and 10.9, and should work on linux as well (Sci Linux 6). So far I don't believe OSX has a built in that does this.īut here's an answer I posted on stackexchange as well a small perl script that determines the process hierarchy and prints it in an indented form using the output of OSX's built-in ps(1).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |