Vladimir Kotal
2011-09-01 13:00:34 UTC
Hi all,
Sorry for a beginner's question but I can't find the answer anywhere and
do not have time to investigate so I decided to exploit this forum. Is
there a way how to instrument a command which has arguments containing
whitespace with PID provider ?
I am doing something like this:
dtrace -Z -n 'pid$target::myfunc:return/arg1 == 1/ { ustack(); }' -c
"/usr/bin/mycmd -a \"foo bar\" -b another"
but everything I tried lead to usage printed by the command or dtrace(1)
for one reason or another.
Thanks for the answers,
v.
Sorry for a beginner's question but I can't find the answer anywhere and
do not have time to investigate so I decided to exploit this forum. Is
there a way how to instrument a command which has arguments containing
whitespace with PID provider ?
I am doing something like this:
dtrace -Z -n 'pid$target::myfunc:return/arg1 == 1/ { ustack(); }' -c
"/usr/bin/mycmd -a \"foo bar\" -b another"
but everything I tried lead to usage printed by the command or dtrace(1)
for one reason or another.
Thanks for the answers,
v.