I'm trying to identify what child processes a program spawns during execution. Ideally it will include things such as the command line being used to launch. Effectively, I'm looking for the OSX equivalent of Process Monitor by Sysinternals.
It needs to have at least some form of logging capability as the subprocesses are short lived, so they are unable to be captured / viewed in a normal application such as Activity Monitor (if I understand Activity Monitor's limitations correctly).
Is anyone aware of a program on OSX with this capability?
Thank you.
auditd
in Linux?). macOS has OpenBSM though I don’t know if this is the right solution.