I need to log the process start events with the command line arguments. There's ps au which prints the command line for the processes which are currently running. There's execsnoop which prints the log of process start events, but it prints only process names.
How can I have execsnoop log with the command line arguments in it?
p.s. there must be some way to do this through writing D script for dtrace, but I'm not skilled enough to do it :(