Bash Scripting an Activity Monitor listing

Hi all,

In the process of tracking a bug on a MacOS X Server Leopard, I am asked by the editor of our database server to do the following anytime our database crashes.

There are a lot of steps to be taken, thus I am willing to write a script in order to do that by bash automatically when it happens.

There is one step I can not reproduce by bash scripting. I am asked to :
"Launch Activity Monitor from \Applications\Utilities. Click the Selected Processes drop down list (top right) and select All Processes. Locate the fmserverd process and click on it once to select it. Click on The View menu and select Sample Processes."

This action shows a tree of all subprocesses with indentation and description of the call made by each fork.
I can not get this exact tree using the PS command on the bash... I especially do not know how to get the information about what call was made to the system in the fork.

Could one of you tell me how to get this result on a bash script ?

Best regards.


B. Jolly

XServe, Mac OS X (10.5.4), Server

Posted on Apr 7, 2009 1:37 AM

Reply
2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Bash Scripting an Activity Monitor listing

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.