Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of nicholas (3034)

Friday January 30, 2009
02:38 PM

(OS X 10.5)--

[ #38370 ]

Dear Apple,

dtrace is very nice, but why did you remove ktrace? Whilst dtrace makes the "hard things possible", it doesn't make the "easy things easy", and often it's an easy thing that I want. Why do I need to use the Manhattan Project to crack a nut when the sledgehammer of 10.4 was more than good enough?

And if your excuse is going to be "but ktrace doesn't fit nicely with the frameworks provided with dtrace" and so "you don't really need it", well, heck, I don't really need truss on Solaris either, but that doesn't stop Sun shipping truss on Solaris as a complimentary tool.

Your OS costs money. Why are three free alternatives better here? Include one of ktrace, strace or truss in 10.6. Any will do. None will not.


It seems that the "command" I want is sudo dtruss sudo -u $USER. Yaktastik. :-(

More typing, doesn't work if the account with a problem to solve doesn't have root privileges, and I suspect will make subtle changes to the environment, compared with running the command directly.

As to my previous problem - I solved it by shipping the script in question to a Linux box and running it under strace there. Fortunately that showed the same symptoms, and strace made the cause obvious.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • For future readers, the solution is likely to use dtruss. You may need to double sudo it:

    sudo dtruss sudo -u rjbs ...