There are Mac GUI applications that provide an interface for the uglier command-line tools (often included in the application package). I would like to see what happens under the hood of such graphical interfaces.
How to "attach" to an application, control it for command line utilities calls and record the file name and command line parameters of these calls?
A solution may also be an application that records the execution of all applications on Mac OS X (filters out the most common system calls).
Example GUI: http://xact.sourceforge.net/ (since it is open source, you can just debug it, but xACT is just an example. Let's pretend that we only have ready-made * .app for monitoring).
Update: dtrace can track exec calls and print the name of the called command. which is half the solution, the other half receives command line arguments. which has not been decided yet (until someone confirms that they have dtrace to do this).
source share