5

I'm trying to preview run commands with the args with D-trace. I tried something like this:

sudo dtrace -n 'syscall::execve:return {printf("%s\n", curpsinfo->pr_psargs);}'

But on OSX this code returns only commands names not their args.

I find this forum thread but code in last answer doesn't works for me.

Vladimir Panteleev
  • 24,651
  • 6
  • 70
  • 114
Maciek Sawicki
  • 6,717
  • 9
  • 34
  • 48

1 Answers1

5

with a little help of my colleague we manage to fix script mentioned in question. This is correct one. The problem was that forum markup removed some * and _ chars.

Maciek Sawicki
  • 6,717
  • 9
  • 34
  • 48