Wednesday, March 15, 2006

I needed to find out what user was spawning of a p...

I needed to find out what user was spawning of a process in Solaris, and I was able to do that using ptree. ptree lists all hierarchy of a spawned process.

In Linux the equivalent would pstree.

If I find the OS X equivalent, I'll let you know.

Update: On OS X if you have fink installed:
fink install pstree
will install an OS X specific pstree.

Update: You can download/compile the source for pstree at:

ftp://ftp.thp.uni-duisburg.de/pub/source/
http://fresh.t-systems-sfr.com/unix/src/misc/

I was able to compile the source and run it natively on Tiger.

Thanks to Seth Theriault for the links.