Nan Xiao via dtrace-discuss stated:
<    Hi all,
<        I want to use dtrace to trace a program in command line.
<        If the program doesn't need an argument, it is OK:
<        bash-3.2# &zwj;dtrace -n 'syscall::sigaction:entry {stack();}' -c
<    ./test&zwj;
<        But if the program needs an argument&zwj;, such as: ./test -X:
<        bash-3.2# &zwj;dtrace -n 'syscall::sigaction:entry {stack();}' -c
<    ./test -X&zwj;
<        dtrace: option requires an argument -- X&zwj;&zwj;
<    &zwj;
<        How to trace a program which needs an argument? Thanks very much in
<    advance!

 Enclose the cmd in quotes.

  dtrace -n 'syscall::sigaction:entry {stack();}' -c './test -X'


<    Best Regards
<    Nan Xiao
< 
<    dtrace-discuss | Archives [IMG] | Modify Your           Powered by Listbox 
<    Subscription                                            

-- 
Seán.
.


-------------------------------------------
dtrace-discuss
Archives: https://www.listbox.com/member/archive/184261/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184261/25769126-e243886f
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769126&id_secret=25769126-8d47a7b2
Powered by Listbox: http://www.listbox.com

Reply via email to